Issue |
98925
|
Summary |
Missed optimization: saturated adds are missed if the selections are flipped
|
Labels |
new issue
|
Assignees |
|
Reporter |
AtariDreams
|
For:
return x + 9 > x ? x + 9 : -1;
LLVM doesn't condense this to a saturated add. It only does for
return x < ~9 ? x + 9 : -1;
This is because the saturated add folds do not actually cover all possible forms.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs