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 | f86e1df8770faa76bb277d7c3c27a407869c6f0c (patch) | |
tree | 45805e5ee6156a0c1b369689829100536034d762 /lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | 13cea0bcefa892b6b73c39fd4d30d8bb42392e1f (diff) |
simplify some code using new predicates
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45689 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 6701e5b93f..3d0e23c51b 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/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(); |