If AddRecExpr with nuw flag, we know that the value will never be smaller than its initial value.
This patch makes this behavior more general.
nsw will be handled in following patch.
Differential D71690
[SCEV] get a more accurate range for AddRecExpr with nuw flag shchenz on Dec 18 2019, 11:50 PM. Authored by
Details If AddRecExpr with nuw flag, we know that the value will never be smaller than its initial value. This patch makes this behavior more general. nsw will be handled in following patch.
Diff Detail Event Timeline
Comment Actions This needs a specific test case.
Comment Actions fix @sanjoy.google comments
Comment Actions for signed range with nuw flag, we can only use the sign min value when constant range for START can not cross 0.
Comment Actions
That is correct. Comment Actions Hi @sanjoy.google , could you please help to have another look at this? Thanks a lot. |
This is the unsigned minimum value right? If so please name it UnsignedMinValue.