Skip to content
Commit 8efee510 authored by Sanjay Patel's avatar Sanjay Patel
Browse files

[InstCombine] limit pair-of-insertelement folds to avoid miscompile

This transform was added with 4446f71c. 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.
parent 7b365381
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment