aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2021-05-30 06:43:33 -0400
committerSanjay Patel <spatel@rotateright.com>2021-05-30 07:11:58 -0400
commit7bb8bfa0622b8ee55c3f748004dcf4d83d48cf97 (patch)
treed765b71320a07f6d4bce2a0758d4f9e12762cf18 /llvm/lib/CodeGen/LiveDebugVariables.cpp
parent126f90b252509486eab5bfbe06894805b26c8da2 (diff)
downloadllvm-7bb8bfa0622b8ee55c3f748004dcf4d83d48cf97.zip
llvm-7bb8bfa0622b8ee55c3f748004dcf4d83d48cf97.tar.gz
llvm-7bb8bfa0622b8ee55c3f748004dcf4d83d48cf97.tar.bz2
[InstCombine] fix miscompile from vector select substitution
This is similar to the fix in c590a9880d7a ( PR49832 ), but we missed handling the pattern for select of bools (no compare inst). We can't substitute a vector value because the equality condition replacement that we are attempting requires that the condition is true/false for the entire value. Vector select can be partly true/false. I added an assert for vector types, so we shouldn't hit this again. Fixed formatting while auditing the callers. https://llvm.org/PR50500
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions