aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2021-05-29 18:50:14 +0100
committerFlorian Hahn <flo@fhahn.com>2021-05-30 11:40:55 +0100
commit126f90b252509486eab5bfbe06894805b26c8da2 (patch)
tree3cb33bcb1aedb676a1f889a4326085bbc5110beb /llvm/lib/CodeGen/LiveDebugVariables.cpp
parent71acce68daf4987529bf08d81a9c5d396536d7c4 (diff)
downloadllvm-126f90b252509486eab5bfbe06894805b26c8da2.zip
llvm-126f90b252509486eab5bfbe06894805b26c8da2.tar.gz
llvm-126f90b252509486eab5bfbe06894805b26c8da2.tar.bz2
[DAGCombine] Poison-prove scalarizeExtractedVectorLoad.
extractelement is poison if the index is out-of-bounds, so just scalarizing the load may introduce an out-of-bounds load, which is UB. To avoid introducing new UB, we can mask the index so it only contains valid indices. Fixes PR50382. Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D103077
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions