diff options
author | JF Bastien <jfb@google.com> | 2015-02-25 22:30:51 +0000 |
---|---|---|
committer | JF Bastien <jfb@google.com> | 2015-02-25 22:30:51 +0000 |
commit | d52c990a9063c266733677e9de3598883a592da0 (patch) | |
tree | b16dabb3f5aac31f71ad434e095712cb130634e7 /llvm/lib/CodeGen | |
parent | de3743453fb7ef45eca9d99ba4f9b1da70135f28 (diff) | |
download | bcm5719-llvm-d52c990a9063c266733677e9de3598883a592da0.tar.gz bcm5719-llvm-d52c990a9063c266733677e9de3598883a592da0.zip |
InstCombine: extract instead of shuffle when performing vector/array type punning
Summary: SROA generates code that isn't quite as easy to optimize and contains unusual-sized shuffles, but that code is generally correct. As discussed in D7487 the right place to clean things up is InstCombine, which will pick up the type-punning pattern and transform it into a more obvious bitcast+extractelement, while leaving the other patterns SROA encounters as-is.
Test Plan: make check
Reviewers: jvoung, chandlerc
Subscribers: llvm-commits
llvm-svn: 230560
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions