aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-10-09 21:02:10 +0000
committerDan Gohman <gohman@apple.com>2009-10-09 21:02:10 +0000
commit599a87aca0194edb46f0bee141c3de8281bf22b9 (patch)
tree93f52d6527cc59b28dfa0cef1773c29e074cf5c9 /lib/CodeGen/LiveIntervalAnalysis.cpp
parent11596ed43c5eb3b8a49f563abdbdb7ea54fec991 (diff)
downloadexternal_llvm-599a87aca0194edb46f0bee141c3de8281bf22b9.zip
external_llvm-599a87aca0194edb46f0bee141c3de8281bf22b9.tar.gz
external_llvm-599a87aca0194edb46f0bee141c3de8281bf22b9.tar.bz2
isTriviallyReMaterializable checks the
TargetInstrDesc::isRematerializable flag, so it isn't necessary to do this check in its callers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83671 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index 4fa172f..135cc17 100644
--- a/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -1423,8 +1423,7 @@ bool LiveIntervals::isReMaterializable(const LiveInterval &li,
// If the target-specific rules don't identify an instruction as
// being trivially rematerializable, use some target-independent
// rules.
- if (!MI->getDesc().isRematerializable() ||
- !tii_->isTriviallyReMaterializable(MI)) {
+ if (!tii_->isTriviallyReMaterializable(MI)) {
if (!EnableAggressiveRemat)
return false;