diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-06 23:38:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-06 23:38:27 +0000 |
commit | a4ce4f6987129c746aecebb3822998dedcd37817 (patch) | |
tree | ffa130c464651476fcf42894b14d41742164c5a1 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | 4d3b0f579ca500edf427ee77fafacbf44cfba1a3 (diff) | |
download | bcm5719-llvm-a4ce4f6987129c746aecebb3822998dedcd37817.tar.gz bcm5719-llvm-a4ce4f6987129c746aecebb3822998dedcd37817.zip |
rename isLoad -> isSimpleLoad due to evan's desire to have such a predicate.
llvm-svn: 45667
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index 5c9d69a231f..f32ada75035 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -618,7 +618,7 @@ bool LiveIntervals::isReMaterializable(const LiveInterval &li, const TargetInstrDescriptor *TID = MI->getInstrDescriptor(); if ((TID->Flags & M_IMPLICIT_DEF_FLAG) || tii_->isTriviallyReMaterializable(MI)) { - isLoad = TID->Flags & M_LOAD_FLAG; + isLoad = TID->isSimpleLoad(); return true; } @@ -1226,7 +1226,7 @@ addIntervalsForSpills(const LiveInterval &li, int LdSlot = 0; bool isLoadSS = DefIsReMat && tii_->isLoadFromStackSlot(ReMatDefMI, LdSlot); bool isLoad = isLoadSS || - (DefIsReMat && (ReMatDefMI->getInstrDescriptor()->Flags & M_LOAD_FLAG)); + (DefIsReMat && (ReMatDefMI->getInstrDescriptor()->isSimpleLoad())); bool IsFirstRange = true; for (LiveInterval::Ranges::const_iterator I = li.ranges.begin(), E = li.ranges.end(); I != E; ++I) { @@ -1308,7 +1308,7 @@ addIntervalsForSpills(const LiveInterval &li, int LdSlot = 0; bool isLoadSS = DefIsReMat && tii_->isLoadFromStackSlot(ReMatDefMI, LdSlot); bool isLoad = isLoadSS || - (DefIsReMat && (ReMatDefMI->getInstrDescriptor()->Flags & M_LOAD_FLAG)); + (DefIsReMat && ReMatDefMI->getInstrDescriptor()->isSimpleLoad()); rewriteInstructionsForSpills(li, TrySplit, I, ReMatOrigDefMI, ReMatDefMI, Slot, LdSlot, isLoad, isLoadSS, DefIsReMat, CanDelete, vrm, RegInfo, rc, ReMatIds, loopInfo, @@ -1423,8 +1423,7 @@ addIntervalsForSpills(const LiveInterval &li, int LdSlot = 0; bool isLoadSS = tii_->isLoadFromStackSlot(ReMatDefMI, LdSlot); // If the rematerializable def is a load, also try to fold it. - if (isLoadSS || - (ReMatDefMI->getInstrDescriptor()->Flags & M_LOAD_FLAG)) + if (isLoadSS || ReMatDefMI->getInstrDescriptor()->isSimpleLoad()) Folded = tryFoldMemoryOperand(MI, vrm, ReMatDefMI, index, Ops, isLoadSS, LdSlot, VReg); } |