Skip to content
Commit dd995ace authored by Nuno Lopes's avatar Nuno Lopes
Browse files

[InstCombine] remove incorrect gep(x, undef) -> undef optimization

gep(x, undef) carries the provenance of x, so we can't replace it with any
pointer like undef.
This leaves room for improvement for the poison case, but that's currently
not possible as the demanded bits API doesn't distinguish between undef &
poison bits.

Fixes #44790
parent 0dc20e32
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment