diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-03-08 08:22:45 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-03-08 08:22:45 +0000 |
commit | fac259814923d091942b230e7bd002a8d1130bc3 (patch) | |
tree | 5a91c02628a442fe93f9cfea4686d42366fc8a90 /lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp | |
parent | 9eddc1cf310c49c0f1f90cbde3687b2610a46689 (diff) | |
download | llvm-fac259814923d091942b230e7bd002a8d1130bc3.tar.gz llvm-fac259814923d091942b230e7bd002a8d1130bc3.tar.bz2 llvm-fac259814923d091942b230e7bd002a8d1130bc3.tar.xz |
Use uint16_t to store instruction implicit uses and defs. Reduces static data.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152301 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp index 2a5b6ef1be..24da432a47 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp @@ -425,7 +425,7 @@ static EVT getPhysicalRegisterVT(SDNode *N, unsigned Reg, const MCInstrDesc &MCID = TII->get(N->getMachineOpcode()); assert(MCID.ImplicitDefs && "Physical reg def must be in implicit def list!"); unsigned NumRes = MCID.getNumDefs(); - for (const unsigned *ImpDef = MCID.getImplicitDefs(); *ImpDef; ++ImpDef) { + for (const uint16_t *ImpDef = MCID.getImplicitDefs(); *ImpDef; ++ImpDef) { if (Reg == *ImpDef) break; ++NumRes; @@ -508,7 +508,7 @@ bool ScheduleDAGFast::DelayForLiveRegsBottomUp(SUnit *SU, const MCInstrDesc &MCID = TII->get(Node->getMachineOpcode()); if (!MCID.ImplicitDefs) continue; - for (const unsigned *Reg = MCID.ImplicitDefs; *Reg; ++Reg) { + for (const uint16_t *Reg = MCID.getImplicitDefs(); *Reg; ++Reg) { CheckForLiveRegDef(SU, *Reg, LiveRegDefs, RegAdded, LRegs, TRI); } } |