diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-07 05:40:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-07 05:40:58 +0000 |
commit | 769c86bf636b4eb1913dfdd2fc466a6ada1201d4 (patch) | |
tree | c2c0d1372fee8da6ad3c2e3a3e75ac59304d17c0 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | c5c63ff9d7695ac20061bbde543d14c721431df5 (diff) | |
download | bcm5719-llvm-769c86bf636b4eb1913dfdd2fc466a6ada1201d4.tar.gz bcm5719-llvm-769c86bf636b4eb1913dfdd2fc466a6ada1201d4.zip |
simplify some code using new predicates
llvm-svn: 45689
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index 6701e5b93fe..3d0e23c51b7 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -616,8 +616,7 @@ bool LiveIntervals::isReMaterializable(const LiveInterval &li, isLoad = false; const TargetInstrDescriptor *TID = MI->getDesc(); - if ((TID->Flags & M_IMPLICIT_DEF_FLAG) || - tii_->isTriviallyReMaterializable(MI)) { + if (TID->isImplicitDef() || tii_->isTriviallyReMaterializable(MI)) { isLoad = TID->isSimpleLoad(); return true; } @@ -682,7 +681,7 @@ bool LiveIntervals::tryFoldMemoryOperand(MachineInstr* &MI, unsigned MRInfo = 0; const TargetInstrDescriptor *TID = MI->getDesc(); // If it is an implicit def instruction, just delete it. - if (TID->Flags & M_IMPLICIT_DEF_FLAG) { + if (TID->isImplicitDef()) { RemoveMachineInstrFromMaps(MI); vrm.RemoveMachineInstrFromMaps(MI); MI->eraseFromParent(); |