diff options
author | Chris Lattner <sabre@nondot.org> | 2007-01-15 01:55:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-01-15 01:55:30 +0000 |
commit | 4d5f508318b2f666ed50a2ed5e49e4aa343a92d6 (patch) | |
tree | ad75d1f1e795fc98c23d34481461d53e17961960 /lib/Transforms/Scalar/LoopStrengthReduce.cpp | |
parent | 3b19d65897db69f1ce2f91bcd581ab76d1c880cf (diff) | |
download | llvm-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.cpp | 2 |
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. |