summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit769c86bf636b4eb1913dfdd2fc466a6ada1201d4 (patch)
treec2c0d1372fee8da6ad3c2e3a3e75ac59304d17c0 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parentc5c63ff9d7695ac20061bbde543d14c721431df5 (diff)
downloadbcm5719-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.cpp5
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();
OpenPOWER on IntegriCloud