Instead of doing the adjustment in 3 different places in the code
base, do it inside UnsignedDivideUsingMagic::get.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D141014
[Support][SelectionDAG][GlobalISel] Hoist PostShift adjustment for IsAdd into UnsignedDivideUsingMagic. ClosedPublic Authored by craig.topper on Jan 4 2023, 1:57 PM.
Details Summary Instead of doing the adjustment in 3 different places in the code
Diff Detail
Event Timelinecraig.topper retitled this revision from [Support][SelectionDAG][GlobalISel] Hoist PostShift adjustment for IsADd into UnsignedDivideUsingMagic. to [Support][SelectionDAG][GlobalISel] Hoist PostShift adjustment for IsAdd into UnsignedDivideUsingMagic..Jan 4 2023, 2:17 PM This revision is now accepted and ready to land.Jan 4 2023, 2:31 PM This revision was landed with ongoing or failed builds.Jan 4 2023, 3:31 PM Closed by commit rG3f749a5d9dfd: [Support][SelectionDAG][GlobalISel] Hoist PostShift adjustment for IsAdd into… (authored by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 486410 llvm/include/llvm/Support/DivisionByConstantInfo.h
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/lib/Support/DivisionByConstantInfo.cpp
llvm/unittests/Support/DivisionByConstantTest.cpp
|
Probably want similar assertion for PreShift?