Skip to content

Commit 1567b09

Browse files
Pierre-vhbcahoon
authored andcommitted
[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 Change-Id: I84457f4c2b2880d657738e91ae68871143f34a48
1 parent 8bacf01 commit 1567b09

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
@@ -744,6 +744,8 @@ SITargetLowering::SITargetLowering(const TargetMachine &TM,
744744
MVT::i8},
745745
Custom);
746746

747+
setOperationAction(ISD::MUL, MVT::i1, Promote);
748+
747749
setTargetDAGCombine({ISD::ADD,
748750
ISD::ADDCARRY,
749751
ISD::SUB,

0 commit comments

Comments
 (0)