[llvm] [CodeGen] Remove checks for vectors in unsigned division prior to computing leading zeros (PR #99524)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 18 13:30:43 PDT 2024
================
@@ -5180,7 +5180,9 @@ MachineInstr *CombinerHelper::buildUDivUsingMul(MachineInstr &MI) {
LLT ScalarShiftAmtTy = ShiftAmtTy.getScalarType();
unsigned KnownLeadingZeros =
- KB ? KB->getKnownBits(LHS).countMinLeadingZeros() : 0;
+ (!MI.getFlag(MachineInstr::MIFlag::IsExact) && KB)
----------------
AtariDreams wrote:
Fixed!
https://github.com/llvm/llvm-project/pull/99524
More information about the llvm-commits
mailing list