[PATCH] D141014: [Support][SelectionDAG][GlobalISel] Hoist PostShift adjustment for IsADd into UnsignedDivideUsingMagic.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 4 13:57:46 PST 2023


craig.topper created this revision.
craig.topper added reviewers: lebedev.ri, RKSimon, spatel, efriedma.
Herald added subscribers: StephenFan, ecnelises, hiraditya.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added a project: LLVM.

Instead of doing the adjustment in 3 different places in the code
base, do it inside UnsignedDivideUsingMagic::get.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D141014

Files:
  llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
  llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
  llvm/lib/Support/DivisionByConstantInfo.cpp
  llvm/unittests/Support/DivisionByConstantTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141014.486391.patch
Type: text/x-patch
Size: 3914 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230104/d68ea30a/attachment.bin>


More information about the llvm-commits mailing list