[all-commits] [llvm/llvm-project] 8ef053: [InstCombine] add tests for sub of smin/smax; NFC
Sanjay Patel via All-commits
all-commits at lists.llvm.org
Mon Jul 4 16:57:28 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8ef053273abf2ae3ae05801808908af9dd7887c3
https://github.com/llvm/llvm-project/commit/8ef053273abf2ae3ae05801808908af9dd7887c3
Author: Sanjay Patel <spatel at rotateright.com>
Date: 2022-07-04 (Mon, 04 Jul 2022)
Changed paths:
M llvm/test/Transforms/InstCombine/sub-minmax.ll
Log Message:
-----------
[InstCombine] add tests for sub of smin/smax; NFC
issue #55470
Commit: 142aca7741d5b06207e87bf4880fbe308c8d6823
https://github.com/llvm/llvm-project/commit/142aca7741d5b06207e87bf4880fbe308c8d6823
Author: Sanjay Patel <spatel at rotateright.com>
Date: 2022-07-04 (Mon, 04 Jul 2022)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
M llvm/test/Transforms/InstCombine/sub-minmax.ll
Log Message:
-----------
[InstCombine] fold sub of min/max of sub with common operand
x - max(x - y, 0) --> min(x, y)
x - min(x - y, 0) --> max(x, y)
https://alive2.llvm.org/ce/z/2YkqFe
issue #55470
Compare: https://github.com/llvm/llvm-project/compare/4276d00b1253...142aca7741d5
More information about the All-commits
mailing list