aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2022-03-24 10:01:41 -0400
committerSanjay Patel <spatel@rotateright.com>2022-03-24 10:25:16 -0400
commit5dbb53b1b4e07a0029569d394cf007a30a0882de (patch)
treeb3c6f9d06a87ba2a1b9c1a81e4366b3a6049ca74 /clang/lib/CodeGen/CodeGenFunction.cpp
parentfea3ca5dc8df1755418b60224b876e9bcc7474bb (diff)
downloadllvm-5dbb53b1b4e07a0029569d394cf007a30a0882de.zip
llvm-5dbb53b1b4e07a0029569d394cf007a30a0882de.tar.gz
llvm-5dbb53b1b4e07a0029569d394cf007a30a0882de.tar.bz2
[InstCombine] merge shuffled vector negate and multiply
Add the "(0 - X) --> (X * -1)" reverse identity to the list of alternate form binops. We need a little hack to make the existing logic work because it does not expect to move constants from op0 to op1, but the code comment hopefully makes that clear. I don't think there are any other identities like that. Fixes #54364 Differential Revision: https://reviews.llvm.org/D122390
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions