aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-07 05:40:58 +0000
committerChris Lattner <sabre@nondot.org>2008-01-07 05:40:58 +0000
commitf86e1df8770faa76bb277d7c3c27a407869c6f0c (patch)
tree45805e5ee6156a0c1b369689829100536034d762 /lib/CodeGen/LiveIntervalAnalysis.cpp
parent13cea0bcefa892b6b73c39fd4d30d8bb42392e1f (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.cpp5
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();