David Majnemer
c6bb0e2a51
[InstSimplify] Don't assume getAggregateElement will succeed
...
It isn't always possible to get a value from getAggregateElement.
This fixes PR24488.
llvm-svn: 245365
2015-08-18 22:07:25 +00:00
David Majnemer
5eaf08ff1f
[VectorUtils] Replace 'llvm::' qualification with 'using llvm'
...
No funcitonal change is intended, this just makes the file look more
like the rest of LLVM.
llvm-svn: 245364
2015-08-18 22:07:20 +00:00
Craig Topper
e3dcce9700
De-constify pointers to Type since they can't be modified. NFC
...
This was already done in most places a while ago. This just fixes the ones that crept in over time.
llvm-svn: 243842
2015-08-01 22:20:21 +00:00
David Majnemer
599ca4426c
[InstSimplify] Teach InstSimplify how to simplify extractelement
...
llvm-svn: 242008
2015-07-13 01:15:53 +00:00
Hal Finkel
9cf58c4095
Move getStrideFromPointer and friends from LoopVectorize to VectorUtils
...
The following functions are moved from the LoopVectorizer to VectorUtils:
- getGEPInductionOperand
- stripGetElementPtr
- getUniqueCastUse
- getStrideFromPointer
These used to be static functions in LoopVectorize, but will also be used by
the upcoming loop versioning LICM transformation.
Patch by Ashutosh Nema!
llvm-svn: 241980
2015-07-11 10:52:42 +00:00
David Blaikie
b447ac6435
Move VectorUtils from Transforms to Analysis to correct layering violation
...
llvm-svn: 240804
2015-06-26 18:02:52 +00:00