The result value of getelementptr inbounds (TY, null, not zero) is a poison value. We can think of it as undefined behavior.
Please let me know if there is anything I don't understand correctly.
Differential D144563
[SimplifyCFG] Improve the precision of `PtrValueMayBeModified` DianQK on Feb 22 2023, 7:04 AM. Authored by
Details The result value of getelementptr inbounds (TY, null, not zero) is a poison value. We can think of it as undefined behavior.
Diff Detail
Event Timeline
Comment Actions Thank you very much for your review! Further, we should remove the bool GetElementPtrInst::hasAllZeroIndices() method altogether. Then we don't need to consider the gep zero case anymore. Although this may require additional work, possibly:
|
may be?