[Mlir-commits] [mlir] 7c93fde - [mlir][llvm] Cleanup LLVM IR control flow import test (NFC).
Tobias Gysi
llvmlistbot at llvm.org
Wed Dec 21 23:56:55 PST 2022
Author: Tobias Gysi
Date: 2022-12-22T08:49:37+01:00
New Revision: 7c93fde8d2740880570d13242d3dcd0b81be3d15
URL: https://github.com/llvm/llvm-project/commit/7c93fde8d2740880570d13242d3dcd0b81be3d15
DIFF: https://github.com/llvm/llvm-project/commit/7c93fde8d2740880570d13242d3dcd0b81be3d15.diff
LOG: [mlir][llvm] Cleanup LLVM IR control flow import test (NFC).
Use a FileCheck variable to match the switch op argument
instead of hardcoding the argument name.
Reviewed By: ftynse, Dinistro
Differential Revision: https://reviews.llvm.org/D140469
Added:
Modified:
mlir/test/Target/LLVMIR/Import/control-flow.ll
Removed:
################################################################################
diff --git a/mlir/test/Target/LLVMIR/Import/control-flow.ll b/mlir/test/Target/LLVMIR/Import/control-flow.ll
index 1aa62d59bbfa2..0cd7c418748c1 100644
--- a/mlir/test/Target/LLVMIR/Import/control-flow.ll
+++ b/mlir/test/Target/LLVMIR/Import/control-flow.ll
@@ -53,7 +53,7 @@ define i32 @simple_switch(i32 %arg1) {
%1 = add i32 %arg1, 42
%2 = sub i32 %arg1, 42
%3 = mul i32 %arg1, 42
- ; CHECK: llvm.switch %arg0 : i32, ^[[BBD:.+]] [
+ ; CHECK: llvm.switch %[[ARG1]] : i32, ^[[BBD:.+]] [
; CHECK: 0: ^[[BB1:.+]],
; CHECK: 9: ^[[BB2:.+]]
; CHECK: ]
@@ -87,7 +87,7 @@ entry:
%0 = add i32 %arg1, 42
%1 = sub i32 %arg1, 42
%2 = mul i32 %arg1, 42
- ; CHECK: llvm.switch %arg0 : i32, ^[[BBD:.+]](%[[VAL3]] : i32) [
+ ; CHECK: llvm.switch %[[ARG1]] : i32, ^[[BBD:.+]](%[[VAL3]] : i32) [
; CHECK: 0: ^[[BB1:.+]](%[[VAL1]], %[[VAL2]] : i32, i32)
; CHECK: ]
switch i32 %arg1, label %bbd [
More information about the Mlir-commits
mailing list