[llvm] ef052a7 - [InstCombine] Update SimplifyCFG test
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 30 01:12:15 PST 2020
Author: Nikita Popov
Date: 2020-01-30T10:11:42+01:00
New Revision: ef052a7527e744591aa7b8164c26dbde0d598b07
URL: https://github.com/llvm/llvm-project/commit/ef052a7527e744591aa7b8164c26dbde0d598b07
DIFF: https://github.com/llvm/llvm-project/commit/ef052a7527e744591aa7b8164c26dbde0d598b07.diff
LOG: [InstCombine] Update SimplifyCFG test
This test also runs -instcombine. Here the operands in an or chain
have been reassociated.
Added:
Modified:
llvm/test/Transforms/SimplifyCFG/merge-cond-stores.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/SimplifyCFG/merge-cond-stores.ll b/llvm/test/Transforms/SimplifyCFG/merge-cond-stores.ll
index e9a3e608ea29..5ad0e139bc2b 100644
--- a/llvm/test/Transforms/SimplifyCFG/merge-cond-stores.ll
+++ b/llvm/test/Transforms/SimplifyCFG/merge-cond-stores.ll
@@ -77,9 +77,9 @@ end:
define void @test_recursive(i32* %p, i32 %a, i32 %b, i32 %c, i32 %d) {
; CHECK-LABEL: @test_recursive(
; CHECK-NEXT: entry:
-; CHECK-NEXT: [[TMP0:%.*]] = or i32 [[B:%.*]], [[A:%.*]]
; CHECK-NEXT: [[X4:%.*]] = icmp eq i32 [[D:%.*]], 0
-; CHECK-NEXT: [[TMP1:%.*]] = or i32 [[TMP0]], [[C:%.*]]
+; CHECK-NEXT: [[TMP0:%.*]] = or i32 [[C:%.*]], [[B:%.*]]
+; CHECK-NEXT: [[TMP1:%.*]] = or i32 [[TMP0]], [[A:%.*]]
; CHECK-NEXT: [[TMP2:%.*]] = icmp ne i32 [[TMP1]], 0
; CHECK-NEXT: [[TMP3:%.*]] = xor i1 [[X4]], true
; CHECK-NEXT: [[TMP4:%.*]] = or i1 [[TMP2]], [[TMP3]]
More information about the llvm-commits
mailing list