diff options
author | Sanjay Patel <spatel@rotateright.com> | 2018-07-09 23:22:47 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2018-07-09 23:22:47 +0000 |
commit | 69faf464eded4d858cd2630ab2dd9ff97ae63604 (patch) | |
tree | ebd849ad998e998b1a173e8f6d5d5152cfc44074 /libcxx/test/std/utilities | |
parent | a5bb6d53f2f4016a335e8dee310e76493ef3b825 (diff) | |
download | bcm5719-llvm-69faf464eded4d858cd2630ab2dd9ff97ae63604.tar.gz bcm5719-llvm-69faf464eded4d858cd2630ab2dd9ff97ae63604.zip |
[InstCombine] allow more shuffle folds using safe constants
getSafeVectorConstantForBinop() was calling getBinOpIdentity() assuming
that the constant we wanted was operand 1 (RHS). That's wrong, but I
don't think we could expose a bug or even a suboptimal fold from that
because the callers have other guards for any binop that would have
been affected.
llvm-svn: 336617
Diffstat (limited to 'libcxx/test/std/utilities')
0 files changed, 0 insertions, 0 deletions