Skip to content

Commit cc3d253

Browse files
authored
[AMDGPU] Add i1 mul patterns (llvm#67291)
i1 muls can sometimes happen after SCEV. They resulted in ISel failures because we were missing the patterns for them. Solves SWDEV-423354
1 parent f41ec27 commit cc3d253

File tree

2 files changed

+328
-77
lines changed

2 files changed

+328
-77
lines changed

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,8 @@ SITargetLowering::SITargetLowering(const TargetMachine &TM,
769769
// extract of relevant bits.
770770
setOperationAction(ISD::GET_FPMODE, MVT::i32, Legal);
771771

772+
setOperationAction(ISD::MUL, MVT::i1, Promote);
773+
772774
setTargetDAGCombine({ISD::ADD,
773775
ISD::UADDO_CARRY,
774776
ISD::SUB,

0 commit comments

Comments
 (0)