diff options
author | Sanjay Patel <spatel@rotateright.com> | 2022-05-10 14:20:43 -0400 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2022-05-10 14:20:43 -0400 |
commit | 0353c2c996c5863463c356de97c9852f9330ed11 (patch) | |
tree | 02c444057d70d3ffddecb47b862abaac2a67ed34 /clang/lib/Basic/IdentifierTable.cpp | |
parent | aca33294de9a062f7ff82d861cb671f443ed78ee (diff) | |
download | llvm-0353c2c996c5863463c356de97c9852f9330ed11.zip llvm-0353c2c996c5863463c356de97c9852f9330ed11.tar.gz llvm-0353c2c996c5863463c356de97c9852f9330ed11.tar.bz2 |
[InstCombine] fold shuffles with FP<->Int cast operands
shuffle (cast X), (cast Y), Mask --> cast (shuffle X, Y, Mask)
This is similar to a recent transform with fneg ( b331a7ebc1e0 ),
but this is intentionally the most conservative first step to
try to avoid regressions in codegen. There are several
restrictions that could be removed as follow-up enhancements.
Note that a cast with a unary shuffle is currently canonicalized
in the other direction (shuffle after cast - D103038 ). We might
want to invert that to be consistent with this patch.
Diffstat (limited to 'clang/lib/Basic/IdentifierTable.cpp')
0 files changed, 0 insertions, 0 deletions