summaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/LoopStrengthReduce.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-01-15 01:55:30 +0000
committerChris Lattner <sabre@nondot.org>2007-01-15 01:55:30 +0000
commit4d5f508318b2f666ed50a2ed5e49e4aa343a92d6 (patch)
treead75d1f1e795fc98c23d34481461d53e17961960 /lib/Transforms/Scalar/LoopStrengthReduce.cpp
parent3b19d65897db69f1ce2f91bcd581ab76d1c880cf (diff)
downloadllvm-4d5f508318b2f666ed50a2ed5e49e4aa343a92d6.tar.gz
llvm-4d5f508318b2f666ed50a2ed5e49e4aa343a92d6.tar.bz2
llvm-4d5f508318b2f666ed50a2ed5e49e4aa343a92d6.tar.xz
Eliminate calls to isInteger, generalizing code and tightening checks as needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33218 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LoopStrengthReduce.cpp')
-rw-r--r--lib/Transforms/Scalar/LoopStrengthReduce.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp
index 798fb81190..fcc5630ef8 100644
--- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@ -398,7 +398,7 @@ static bool IVUseShouldUsePostIncValue(Instruction *User, Instruction *IV,
/// return true. Otherwise, return false.
bool LoopStrengthReduce::AddUsersIfInteresting(Instruction *I, Loop *L,
std::set<Instruction*> &Processed) {
- if (!I->getType()->isInteger() && !isa<PointerType>(I->getType()))
+ if (!I->getType()->isIntegral() && !isa<PointerType>(I->getType()))
return false; // Void and FP expressions cannot be reduced.
if (!Processed.insert(I).second)
return true; // Instruction already handled.