diff options
| author | Dan Gohman <gohman@apple.com> | 2009-04-17 02:02:52 +0000 | 
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-04-17 02:02:52 +0000 | 
| commit | d2d6fd806c4e7fb7d80e34413da54be28b25368e (patch) | |
| tree | 17a2e520140c48080d1d4d03dbc079782a97c522 /llvm/lib/Transforms | |
| parent | eaa28f7e18860d676a16031ed534d973f2412e87 (diff) | |
| download | bcm5719-llvm-d2d6fd806c4e7fb7d80e34413da54be28b25368e.tar.gz bcm5719-llvm-d2d6fd806c4e7fb7d80e34413da54be28b25368e.zip | |
Don't create ConstantInts with pointer type. This fixes a
regression in 403.gcc in PIC_CODEGEN=1 and DISABLE_LTO=1
mode.
llvm-svn: 69344
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp index 3df0ab35942..693a4104412 100644 --- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -2117,7 +2117,7 @@ ICmpInst *LoopStrengthReduce::ChangeCompareStride(Loop *L, ICmpInst *Cond,        NewOffset = TyBits == NewTyBits          ? SE->getMulExpr(CondUse->Offset,                           SE->getConstant(ConstantInt::get(CmpTy, Scale))) -        : SE->getConstant(ConstantInt::get(NewCmpTy, +        : SE->getConstant(ConstantInt::get(IntegerType::get(NewTyBits),            cast<SCEVConstant>(CondUse->Offset)->getValue()->getSExtValue()*Scale));        break;      } | 

