From 599a87aca0194edb46f0bee141c3de8281bf22b9 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 9 Oct 2009 21:02:10 +0000 Subject: 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 --- lib/CodeGen/LiveIntervalAnalysis.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp') diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 4fa172fc52..135cc1719f 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; -- cgit v1.2.3