This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Baseline tests for folding (A/-B)==(A/B) to (A/B)==0
Needs ReviewPublic

Authored by marcauberer on Aug 30 2023, 7:10 AM.

Diff Detail

Event Timeline

marcauberer created this revision.Aug 30 2023, 7:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 30 2023, 7:10 AM
Herald added a subscriber: StephenFan. · View Herald Transcript
marcauberer requested review of this revision.Aug 30 2023, 7:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 30 2023, 7:10 AM

Update link to code rev

Can you make this and the impl a series. You do that with the Edit Related Revisions button and set this one as the child of the impl patch.

Use icmp eq instead of ne for precondition