diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-11-09 23:28:39 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-11-09 23:28:39 +0000 |
| commit | 9dbb42944c4d7caddab21016b24cca31019a3faf (patch) | |
| tree | 26a4ee2c7012d277e6747bf7a8290ecf5699b1d7 /lib/Transforms | |
| parent | 803b48a155eb2b3f9fe3823ecd7cbbd0089b2809 (diff) | |
| download | external_llvm-9dbb42944c4d7caddab21016b24cca31019a3faf.zip external_llvm-9dbb42944c4d7caddab21016b24cca31019a3faf.tar.gz external_llvm-9dbb42944c4d7caddab21016b24cca31019a3faf.tar.bz2 | |
rename SimplifyCompare -> SimplifyCmpInst and split it into
Simplify[IF]Cmp pieces. Add some predicates to CmpInst to
determine whether a predicate is fp or int.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86624 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
| -rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 1 | ||||
| -rw-r--r-- | lib/Transforms/Scalar/JumpThreading.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 52b9b04..59293be 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -42,6 +42,7 @@ #include "llvm/GlobalVariable.h" #include "llvm/Operator.h" #include "llvm/Analysis/ConstantFolding.h" +#include "llvm/Analysis/InstructionSimplify.h" #include "llvm/Analysis/MemoryBuiltins.h" #include "llvm/Analysis/ValueTracking.h" #include "llvm/Target/TargetData.h" diff --git a/lib/Transforms/Scalar/JumpThreading.cpp b/lib/Transforms/Scalar/JumpThreading.cpp index 790aaf5..7eaae9b 100644 --- a/lib/Transforms/Scalar/JumpThreading.cpp +++ b/lib/Transforms/Scalar/JumpThreading.cpp @@ -354,7 +354,7 @@ ComputeValueKnownInPredecessors(Value *V, BasicBlock *BB,PredValueInfo &Result){ Value *LHS = PN->getIncomingValue(i); Value *RHS = Cmp->getOperand(1)->DoPHITranslation(BB, PredBB); - Value *Res = SimplifyCompare(Cmp->getPredicate(), LHS, RHS); + Value *Res = SimplifyCmpInst(Cmp->getPredicate(), LHS, RHS); if (Res == 0) continue; if (isa<UndefValue>(Res)) |
