-
Notifications
You must be signed in to change notification settings - Fork 14.3k
AMDGPU: Switch test to generated checks #131315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AMDGPU: Switch test to generated checks #131315
Conversation
@llvm/pr-subscribers-backend-amdgpu Author: Matt Arsenault (arsenm) ChangesI doubt this is testing what it originally intended anymore. Also Full diff: https://github.com/llvm/llvm-project/pull/131315.diff 1 Files Affected:
diff --git a/llvm/test/CodeGen/AMDGPU/subreg-eliminate-dead.ll b/llvm/test/CodeGen/AMDGPU/subreg-eliminate-dead.ll
index 59ad6f6139ace..2efcb411cf0ee 100644
--- a/llvm/test/CodeGen/AMDGPU/subreg-eliminate-dead.ll
+++ b/llvm/test/CodeGen/AMDGPU/subreg-eliminate-dead.ll
@@ -1,16 +1,19 @@
-; RUN: llc -mtriple=amdgcn-- -verify-machineinstrs -o - %s | FileCheck %s
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
+; RUN: llc -mtriple=amdgcn-- -mcpu=tahiti < %s | FileCheck %s
; LiveRangeEdit::eliminateDeadDef did not update LiveInterval sub ranges
; properly.
; Just make sure this test doesn't crash.
-; CHECK-LABEL: foobar:
-; CHECK: s_endpgm
define amdgpu_kernel void @foobar() {
+; CHECK-LABEL: foobar:
+; CHECK: ; %bb.0:
+; CHECK-NEXT: s_endpgm
%v0 = icmp eq <4 x i32> poison, <i32 0, i32 1, i32 2, i32 3>
%v3 = sext <4 x i1> %v0 to <4 x i32>
%v4 = extractelement <4 x i32> %v3, i32 1
%v5 = icmp ne i32 %v4, 0
- %v6 = select i1 %v5, i32 undef, i32 0
+ %undef = freeze i32 poison
+ %v6 = select i1 %v5, i32 %undef, i32 0
%v15 = insertelement <2 x i32> poison, i32 %v6, i32 1
store <2 x i32> %v15, ptr addrspace(1) poison, align 8
ret void
|
You can test this locally with the following command:git diff -U0 --pickaxe-regex -S '([^a-zA-Z0-9#_-]undef[^a-zA-Z0-9_-]|UndefValue::get)' 5679be1b12a79ce1c22d4f588de634ac64a5116b 7b23925faefc723e69bb5afc04a5b2c47fca178b llvm/test/CodeGen/AMDGPU/subreg-eliminate-dead.ll The following files introduce new uses of undef:
Undef is now deprecated and should only be used in the rare cases where no replacement is possible. For example, a load of uninitialized memory yields In tests, avoid using For example, this is considered a bad practice: define void @fn() {
...
br i1 undef, ...
} Please use the following instead: define void @fn(i1 %cond) {
...
br i1 %cond, ...
} Please refer to the Undefined Behavior Manual for more information. |
22bcd30
to
1b2648a
Compare
094daa9
to
5679be1
Compare
1b2648a
to
7b23925
Compare
Merge activity
|
d7aacda
to
fcd1a3b
Compare
7b23925
to
9bace50
Compare
I doubt this is testing what it originally intended anymore. Also replace an undef.
9bace50
to
9941983
Compare
I doubt this is testing what it originally intended anymore. Also
replace an undef.