Also strengthen the flags for the post-increment SCEV, as suggested by
@mkazantsev.
Depends on D144050.
Differential D145395
[SCEV] Also strengthen flags for post-increment. fhahn on Mar 6 2023, 8:52 AM. Authored by
Details
Also strengthen the flags for the post-increment SCEV, as suggested by Depends on D144050.
Diff Detail
Unit Tests Event Timeline
|
It's not really obvious to me why this is correct. Can't the extra addition of the post-inc addrec overflow, even if the pre-inc addrec can't? I believe the current reasoning for setting flags on the post-inc addrec is specifically about nowrap flags present in IR that would result in UB if violated. I don't think this would hold up for flags inferred from the pre-inc addrec range.