diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-10-01 20:57:09 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-10-01 21:15:48 +0200 |
commit | 9d1c8c0ba94a273c53829f0800335045e547db88 (patch) | |
tree | d1c23d43ea88dc4edd850ca1a8417724a710a050 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 8d26760a95bae34aa5c1161a1c2ab8c1cdaa10a1 (diff) | |
download | llvm-9d1c8c0ba94a273c53829f0800335045e547db88.zip llvm-9d1c8c0ba94a273c53829f0800335045e547db88.tar.gz llvm-9d1c8c0ba94a273c53829f0800335045e547db88.tar.bz2 |
[InstCombine] Fix select operand simplification with undef (PR47696)
When replacing X == Y ? f(X) : Z with X == Y ? f(Y) : Z, make sure
that Y cannot be undef. If it may be undef, we might end up picking
a different value for undef in the comparison and the select
operand.
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions