aboutsummaryrefslogtreecommitdiffstats
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
commit4335bff976322ecb58b44421c995f0bbfeeb576f (patch)
tree45805e5ee6156a0c1b369689829100536034d762 /lib/CodeGen/LiveIntervalAnalysis.cpp
parent35ee6bf4283d6456fcc87497deaabc16f28b9fc2 (diff)
downloadexternal_llvm-4335bff976322ecb58b44421c995f0bbfeeb576f.zip
external_llvm-4335bff976322ecb58b44421c995f0bbfeeb576f.tar.gz
external_llvm-4335bff976322ecb58b44421c995f0bbfeeb576f.tar.bz2
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 6701e5b..3d0e23c 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();