This is an archive of the discontinued LLVM Phabricator instance.

[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
For unsigned div, 'nsw' on both shifts + 'nuw' on the dividend.

Alive2: https://alive2.llvm.org/ce/z/sELF76

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptDec 14 2022, 12:14 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
Chenbing.Zheng requested review of this revision.Dec 14 2022, 12:14 AM
spatel accepted this revision.Dec 16 2022, 5:01 AM

LGTM - thanks!

This 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
This revision was automatically updated to reflect the committed changes.