[PATCH] D57988: [GlobalISel] Regex the opcodes in unit test to fix non-deterministic ordering
Mandeep Singh Grang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 8 17:02:17 PST 2019
mgrang created this revision.
mgrang added reviewers: aditya_nandakumar, arsenm.
Herald added subscribers: Petar.Avramovic, javed.absar, kristof.beyls, rovka, wdng.
Herald added a project: LLVM.
Repository:
rL LLVM
https://reviews.llvm.org/D57988
Files:
test/CodeGen/AArch64/GlobalISel/legalize-ext-csedebug-output.mir
Index: test/CodeGen/AArch64/GlobalISel/legalize-ext-csedebug-output.mir
===================================================================
--- test/CodeGen/AArch64/GlobalISel/legalize-ext-csedebug-output.mir
+++ test/CodeGen/AArch64/GlobalISel/legalize-ext-csedebug-output.mir
@@ -19,13 +19,9 @@
; CHECK: CSEInfo::Found Instr %{{[0-9]+}}:_(s32) = G_CONSTANT
; CHECK: CSEInfo::Found Instr %{{[0-9]+}}:_(s32) = G_TRUNC
; CHECK: CSEInfo::Found Instr %{{[0-9]+}}:_(s32) = G_AND
- ; Note - these will be sensitive the opcode numbers. If
- ; frequently modifying generic opcodes, we could just regex
- ; the opcodes in the following lines instead of checking for
- ; specific opcode numbers.
- ; CHECK: CSEInfo::CSE Hit for Opc 82 : 1
- ; CHECK: CSEInfo::CSE Hit for Opc 41 : 1
- ; CHECK: CSEInfo::CSE Hit for Opc 83 : 1
+ ; CHECK: CSEInfo::CSE Hit for Opc {{[0-9]+}} : 1
+ ; CHECK: CSEInfo::CSE Hit for Opc {{[0-9]+}} : 1
+ ; CHECK: CSEInfo::CSE Hit for Opc {{[0-9]+}} : 1
%0:_(s64) = COPY $x0
%1:_(s8) = G_TRUNC %0(s64)
%19:_(s32) = G_ZEXT %1(s8)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57988.186078.patch
Type: text/x-patch
Size: 1104 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190209/0f7c0f71/attachment.bin>
More information about the llvm-commits
mailing list