summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2022-12-14 17:52:50 -0500
committerSanjay Patel <spatel@rotateright.com>2022-12-15 08:27:43 -0500
commit8efee510be3c2dd02db0b070055aedf095a3acce (patch)
tree2fcf40290fbda6a2ca07487f58d8aef9e521509c /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent7b36538156b7742627b422c0e6a3a18ec13b99b3 (diff)
[InstCombine] limit pair-of-insertelement folds to avoid miscompile
This transform was added with 4446f71ce392. However, as noted in the post-commit feedback, the transform is not safe with an arbitrary base vector because we may leak poison from a narrow element into an adjacent element when bitcasting. I made the least invasive code change in case we do figure out a way to make this safe.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions