[llvm] [RISCV][SDAG] Prefer ShortForwardBranch to lower sdiv by pow2 (PR #67364)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 24 09:08:23 PDT 2023
================
@@ -22714,32 +22714,7 @@ X86TargetLowering::BuildSDIVPow2(SDNode *N, const APInt &Divisor,
if (Lg2 == 1)
----------------
topperc wrote:
Just check the `Divisor == 2 || Division == -2`. The Lg2 made mode sense when we already needed Lg2 for the rest of the code, but that's in the TargetLowering::buildSDIVPow2WithCMov now.
https://github.com/llvm/llvm-project/pull/67364
More information about the llvm-commits
mailing list