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` Authored by DianQK on Feb 22 2023, 7:04 AM. 
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?