[llvm] VNCoercion: Do not introduce coercions between integers and non-integral pointers. (PR #119156)

Owen Anderson via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 9 14:36:48 PST 2024


================

----------------
resistor wrote:

The primary intent is to prevent forwarding of a store of an non-integral pointer to a load of an integer, due to this phase from LangRef: "Because the bit-representation of a non-integral pointer may not be stable, two identical casts of the same operand may or may not return the same value."

I think the test is checking what it's meant to test?

https://github.com/llvm/llvm-project/pull/119156


More information about the llvm-commits mailing list