[PATCH] D61307: [InstCombine] Add new combine to sub folding
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 1 06:12:14 PDT 2019
lebedev.ri added inline comments.
================
Comment at: llvm/test/Transforms/InstCombine/sub.ll:1270-1313
+define i32 @test70(i32 %A) {
+; CHECK-LABEL: @test70(
+; CHECK-NEXT: [[TMP1:%.*]] = and i32 [[A:%.*]], -124
+; CHECK-NEXT: ret i32 [[TMP1]]
+;
+ %B = or i32 %A, 123
+ %C = sub i32 %B, 123
----------------
Please precommit all the tests.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61307/new/
https://reviews.llvm.org/D61307
More information about the llvm-commits
mailing list