diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-06 22:37:39 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-06 22:37:39 +0000 |
commit | f1f1743b2efecfc049dd54cb4d97be8761b12ca0 (patch) | |
tree | 3a5f6b46130e7da8f6d4cf6cf462ec011021c6c1 /llvm/lib/Analysis/LoopVR.cpp | |
parent | 83b5ccbecf80a824633c642928fa40696163cf9b (diff) | |
download | bcm5719-llvm-f1f1743b2efecfc049dd54cb4d97be8761b12ca0.tar.gz bcm5719-llvm-f1f1743b2efecfc049dd54cb4d97be8761b12ca0.zip |
Finish LLVMContext-ing lib/Analysis. This required pushing LLVMContext's through the ValueTracking API.
llvm-svn: 74873
Diffstat (limited to 'llvm/lib/Analysis/LoopVR.cpp')
-rw-r--r-- | llvm/lib/Analysis/LoopVR.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/LoopVR.cpp b/llvm/lib/Analysis/LoopVR.cpp index ae715ac5863..3800ef53580 100644 --- a/llvm/lib/Analysis/LoopVR.cpp +++ b/llvm/lib/Analysis/LoopVR.cpp @@ -15,6 +15,7 @@ #include "llvm/Analysis/LoopVR.h" #include "llvm/Constants.h" #include "llvm/Instructions.h" +#include "llvm/LLVMContext.h" #include "llvm/Analysis/ScalarEvolutionExpressions.h" #include "llvm/Assembly/Writer.h" #include "llvm/Support/CFG.h" @@ -71,8 +72,8 @@ ConstantRange LoopVR::getRange(const SCEV* S, const SCEV* T, ScalarEvolution &SE ConstantRange X = getRange(Mul->getOperand(0), T, SE); if (X.isFullSet()) return FullSet; - const IntegerType *Ty = IntegerType::get(X.getBitWidth()); - const IntegerType *ExTy = IntegerType::get(X.getBitWidth() * + const IntegerType *Ty = Context->getIntegerType(X.getBitWidth()); + const IntegerType *ExTy = Context->getIntegerType(X.getBitWidth() * Mul->getNumOperands()); ConstantRange XExt = X.zeroExtend(ExTy->getBitWidth()); |