diff options
| author | Dan Gohman <gohman@apple.com> | 2009-06-15 22:12:54 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-06-15 22:12:54 +0000 |
| commit | 7ccc52f131a08373a0fb65d4e37108b4d0f77733 (patch) | |
| tree | a7fc9bebe61f26280509ddda9fedac159c57b37e /llvm/lib/Analysis/ScalarEvolutionExpander.cpp | |
| parent | eb68408a5ad9c2f2968d9a96712e3d925f75cbc0 (diff) | |
| download | bcm5719-llvm-7ccc52f131a08373a0fb65d4e37108b4d0f77733.tar.gz bcm5719-llvm-7ccc52f131a08373a0fb65d4e37108b4d0f77733.zip | |
Support vector casts in more places, fixing a variety of assertion
failures.
To support this, add some utility functions to Type to help support
vector/scalar-independent code. Change ConstantInt::get and
ConstantFP::get to support vector types, and add an overload to
ConstantInt::get that uses a static IntegerType type, for
convenience.
Introduce a new getConstant method for ScalarEvolution, to simplify
common use cases.
llvm-svn: 73431
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolutionExpander.cpp')
| -rw-r--r-- | llvm/lib/Analysis/ScalarEvolutionExpander.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp index abfe94dc80b..2a73c27405a 100644 --- a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp +++ b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp @@ -298,9 +298,7 @@ Value *SCEVExpander::expandAddToGEP(const SCEVHandle *op_begin, GepIndices.push_back(ConstantInt::get(Type::Int32Ty, ElIdx)); ElTy = STy->getTypeAtIndex(ElIdx); Ops[0] = - SE.getConstant(ConstantInt::get(Ty, - FullOffset - - SL.getElementOffset(ElIdx))); + SE.getConstant(Ty, FullOffset - SL.getElementOffset(ElIdx)); AnyNonZeroIndices = true; continue; } |

