Skip to content

Commit cdea46c

Browse files
[AMDGPU] Add pattern for inverse.ballot.i64 Wave32 (#132770)
1 parent 4107544 commit cdea46c

File tree

2 files changed

+282
-147
lines changed

2 files changed

+282
-147
lines changed

llvm/lib/Target/AMDGPU/SIInstructions.td

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,12 @@ def S_INVERSE_BALLOT_U64 : SPseudoInstSI<
245245
>;
246246
} // End usesCustomInserter = 1
247247

248+
let WaveSizePredicate = isWave32 in
249+
def : GCNPat <
250+
(i1 (int_amdgcn_inverse_ballot i64:$src)),
251+
(S_INVERSE_BALLOT_U32 (i32 (EXTRACT_SUBREG SReg_64:$src, sub0)))
252+
>;
253+
248254
// Pseudo instructions used for @llvm.fptrunc.round. The final codegen is done
249255
// in the ModeRegister pass.
250256
let Uses = [MODE, EXEC] in {

0 commit comments

Comments
 (0)