Add one more situation for this fold
For unsigned div, 'nsw' on both shifts + 'nuw' on the dividend.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D139997
[InstCombine] complete (X << Z) / (Y << Z) --> X / Y ClosedPublic Authored by Chenbing.Zheng on Dec 14 2022, 12:14 AM.
Details Summary Add one more situation for this fold
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Dec 16 2022, 5:01 AM This revision was landed with ongoing or failed builds.Dec 22 2022, 7:57 PM Closed by commit rGbff1f8c79bee: [InstCombine] complete (X << Z) / (Y << Z) --> X / Y (authored by Chenbing.Zheng, committed by benshi001). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 485028 llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
llvm/test/Transforms/InstCombine/div-shift.ll
|