diff options
author | Sanjay Patel <spatel@rotateright.com> | 2015-12-12 16:44:48 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2015-12-12 16:44:48 +0000 |
commit | 1d49fc9b2774bbdabab2fc816d25f360d80712c9 (patch) | |
tree | 2959d1f85a98714321539d92e22069309daaa291 /lldb/packages/Python/lldbsuite/test/lang/cpp/namespace/ns.h | |
parent | a2d15918764808a945d13398a03de7929f0a7a78 (diff) | |
download | bcm5719-llvm-1d49fc9b2774bbdabab2fc816d25f360d80712c9.tar.gz bcm5719-llvm-1d49fc9b2774bbdabab2fc816d25f360d80712c9.zip |
[InstCombine] canonicalize (bitcast (extractelement X)) --> (extractelement(bitcast X))
This change was discussed in D15392. It allows us to remove the fold that was added
in:
http://reviews.llvm.org/r255261
...and it will allow us to generalize this fold:
http://reviews.llvm.org/rL112232
while preserving the order of bitcast + extract that it produces and testing shows
is better handled by the backend.
Note that the existing check for "isVectorTy()" wasn't strong enough in general
and specifically because: x86_mmx. It's not a vector, but it's not vectorizable
either. So here we check VectorType::isValidElementType() directly before
proceeding with the transform.
llvm-svn: 255433
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/namespace/ns.h')
0 files changed, 0 insertions, 0 deletions