[llvm] 6d55f6d - [SimplifyCFG] Regenerate test checks (NFC)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 30 04:05:59 PDT 2023
Author: DianQK
Date: 2023-07-30T19:04:06+08:00
New Revision: 6d55f6d8185ee3eae92f0a46d45f40a09028329f
URL: https://github.com/llvm/llvm-project/commit/6d55f6d8185ee3eae92f0a46d45f40a09028329f
DIFF: https://github.com/llvm/llvm-project/commit/6d55f6d8185ee3eae92f0a46d45f40a09028329f.diff
LOG: [SimplifyCFG] Regenerate test checks (NFC)
Remove the following warning.
```
WARNING: Change IR value name 'tmp4' or use --prefix-filecheck-ir-name to prevent possible conflict with scripted FileCheck name.
```
Added:
Modified:
llvm/test/Transforms/SimplifyCFG/X86/switch_to_lookup_table.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/SimplifyCFG/X86/switch_to_lookup_table.ll b/llvm/test/Transforms/SimplifyCFG/X86/switch_to_lookup_table.ll
index 962757f03eff22..a00805077aae00 100644
--- a/llvm/test/Transforms/SimplifyCFG/X86/switch_to_lookup_table.ll
+++ b/llvm/test/Transforms/SimplifyCFG/X86/switch_to_lookup_table.ll
@@ -354,8 +354,8 @@ define i1 @undef(i32 %tmp) {
; CHECK-NEXT: [[SWITCH_SHIFTAMT:%.*]] = mul nuw nsw i9 [[SWITCH_CAST]], 1
; CHECK-NEXT: [[SWITCH_DOWNSHIFT:%.*]] = lshr i9 3, [[SWITCH_SHIFTAMT]]
; CHECK-NEXT: [[SWITCH_MASKED:%.*]] = trunc i9 [[SWITCH_DOWNSHIFT]] to i1
-; CHECK-NEXT: [[TMP4:%.*]] = select i1 [[TMP0]], i1 [[SWITCH_MASKED]], i1 undef
-; CHECK-NEXT: ret i1 [[TMP4]]
+; CHECK-NEXT: [[_TMP4:%.*]] = select i1 [[TMP0]], i1 [[SWITCH_MASKED]], i1 undef
+; CHECK-NEXT: ret i1 [[_TMP4]]
;
bb:
switch i32 %tmp, label %bb3 [
@@ -369,8 +369,8 @@ bb1: br label %bb3
bb2: br label %bb3
bb3:
- %tmp4 = phi i1 [ undef, %bb ], [ false, %bb2 ], [ true, %bb1 ]
- ret i1 %tmp4
+ %_tmp4 = phi i1 [ undef, %bb ], [ false, %bb2 ], [ true, %bb1 ]
+ ret i1 %_tmp4
}
; Also handle large switches that would be rejected by
More information about the llvm-commits
mailing list