diff options
| author | Bill Wendling <isanbard@gmail.com> | 2007-12-08 07:17:56 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2007-12-08 07:17:56 +0000 |
| commit | 320c630c1b55e17fa00249d499f974cb1a4238f8 (patch) | |
| tree | 1a00b2417e9e4f4875214abcece0477e236f50c4 /lib/CodeGen | |
| parent | d96428597b9a4bcf3c0702bbb497796b922c2e91 (diff) | |
| download | external_llvm-320c630c1b55e17fa00249d499f974cb1a4238f8.zip external_llvm-320c630c1b55e17fa00249d499f974cb1a4238f8.tar.gz external_llvm-320c630c1b55e17fa00249d499f974cb1a4238f8.tar.bz2 | |
Renaming:
isTriviallyReMaterializable -> hasNoSideEffects
isReallyTriviallyReMaterializable -> isTriviallyReMaterializable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44702 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
| -rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 2 | ||||
| -rw-r--r-- | lib/CodeGen/MachineLICM.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index d151da3..f4144e3 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -613,7 +613,7 @@ bool LiveIntervals::isReMaterializable(const LiveInterval &li, return false; isLoad = false; - if (tii_->isTriviallyReMaterializable(MI)) { + if (tii_->hasNoSideEffects(MI)) { isLoad = MI->getInstrDescriptor()->Flags & M_LOAD_FLAG; return true; } diff --git a/lib/CodeGen/MachineLICM.cpp b/lib/CodeGen/MachineLICM.cpp index 1153151..0f8c01c 100644 --- a/lib/CodeGen/MachineLICM.cpp +++ b/lib/CodeGen/MachineLICM.cpp @@ -120,7 +120,7 @@ namespace { if (TID->ImplicitUses || !I.getNumOperands()) return false; MachineOpCode Opcode = TID->Opcode; - return TII->isTriviallyReMaterializable(&I) && + return TII->hasNoSideEffects(&I) && // FIXME: Below necessary? !(TII->isReturn(Opcode) || TII->isTerminatorInstr(Opcode) || |
