[llvm] a428386 - AMDGPU/GlobalISel: Partially fix llvm.amdgcn.kill pattern import
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 7 07:10:10 PST 2020
Author: Matt Arsenault
Date: 2020-01-07T10:09:59-05:00
New Revision: a428386d4a805f94299e5013805ddd4a2114f5f5
URL: https://github.com/llvm/llvm-project/commit/a428386d4a805f94299e5013805ddd4a2114f5f5
DIFF: https://github.com/llvm/llvm-project/commit/a428386d4a805f94299e5013805ddd4a2114f5f5.diff
LOG: AMDGPU/GlobalISel: Partially fix llvm.amdgcn.kill pattern import
Tests deferred since the existing DAG test depends on some other
operations, but isn't far from working as-is.
Added:
Modified:
llvm/lib/Target/AMDGPU/SIInstructions.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SIInstructions.td b/llvm/lib/Target/AMDGPU/SIInstructions.td
index b9249df5f80b..dad0b8b2c0ce 100644
--- a/llvm/lib/Target/AMDGPU/SIInstructions.td
+++ b/llvm/lib/Target/AMDGPU/SIInstructions.td
@@ -646,22 +646,22 @@ def : Pat <
def : Pat <
(int_amdgcn_kill i1:$src),
- (SI_KILL_I1_PSEUDO $src, 0)
+ (SI_KILL_I1_PSEUDO SCSrc_i1:$src, 0)
>;
def : Pat <
(int_amdgcn_kill (i1 (not i1:$src))),
- (SI_KILL_I1_PSEUDO $src, -1)
+ (SI_KILL_I1_PSEUDO SCSrc_i1:$src, -1)
>;
def : Pat <
(AMDGPUkill i32:$src),
- (SI_KILL_F32_COND_IMM_PSEUDO $src, 0, 3) // 3 means SETOGE
+ (SI_KILL_F32_COND_IMM_PSEUDO VSrc_b32:$src, 0, 3) // 3 means SETOGE
>;
def : Pat <
(int_amdgcn_kill (i1 (setcc f32:$src, InlineImmFP32:$imm, cond:$cond))),
- (SI_KILL_F32_COND_IMM_PSEUDO $src, (bitcast_fpimm_to_i32 $imm), (cond_as_i32imm $cond))
+ (SI_KILL_F32_COND_IMM_PSEUDO VSrc_b32:$src, (bitcast_fpimm_to_i32 $imm), (cond_as_i32imm $cond))
>;
// TODO: we could add more variants for other types of conditionals
More information about the llvm-commits
mailing list