diff options
author | Sanjay Patel <spatel@rotateright.com> | 2015-12-14 16:16:54 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2015-12-14 16:16:54 +0000 |
commit | f727e387be5fd9e4cc39a484ec939371131930a9 (patch) | |
tree | 77867b4f5d454007519396cb9d1f87e991de90de /lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp | |
parent | f4f6870ff22b3acd45006d6da685a23c03fc4b1b (diff) | |
download | bcm5719-llvm-f727e387be5fd9e4cc39a484ec939371131930a9.tar.gz bcm5719-llvm-f727e387be5fd9e4cc39a484ec939371131930a9.zip |
[InstCombine] fold trunc ([lshr] (bitcast vector) ) --> extractelement (PR25543)
This is a fix for PR25543:
https://llvm.org/bugs/show_bug.cgi?id=25543
The idea is to take the existing fold of:
bitcast ( trunc ( lshr ( bitcast X))) --> extractelement (bitcast X)
( http://reviews.llvm.org/rL112232 )
And break it into less specific transforms so we'll catch more cases such as
the example in the bug report:
bitcast ( trunc ( lshr ( bitcast X))) -->
bitcast ( extractelement (bitcast X)) -->
extractelement (bitcast X)
Enabling patches for this change:
http://reviews.llvm.org/rL255399 (combine bitcasts)
http://reviews.llvm.org/rL255433 (canonicalize extractelement(bitcast X))
Differential Revision: http://reviews.llvm.org/D15392
llvm-svn: 255504
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp')
0 files changed, 0 insertions, 0 deletions