Skip to content

Commit 47ccb52

Browse files
arsenmtstellar
authored andcommitted
AMDGPU: Set max supported div/rem size to 64 (llvm#80669)
This enables IR expansion for i128 divisions. The vector case is still broken because ExpandLargeDivRem doesn't try to handle them. Fixes: SWDEV-426193 (cherry picked from commit a5d206d)
1 parent 27ca26d commit 47ccb52

File tree

3 files changed

+5469
-6
lines changed

3 files changed

+5469
-6
lines changed

llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,7 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(const TargetMachine &TM,
577577
ISD::AssertSext, ISD::INTRINSIC_WO_CHAIN});
578578

579579
setMaxAtomicSizeInBitsSupported(64);
580+
setMaxDivRemBitWidthSupported(64);
580581
}
581582

582583
bool AMDGPUTargetLowering::mayIgnoreSignedZero(SDValue Op) const {

0 commit comments

Comments
 (0)