This is an archive of the discontinued LLVM Phabricator instance.

[Analysis] Simplify the interface to llvm::getICmpCode. NFC
ClosedPublic

Authored by craig.topper on Feb 25 2022, 9:52 PM.

Details

Summary

Instead of passing an InstCmpInt * and a bool just pass the predicate
from the caller.

I'm considering moving the similar FCmp functions from InstCombine
over here and this makes the interface consistent with what is used
for FCmp.

Diff Detail

Event Timeline

craig.topper created this revision.Feb 25 2022, 9:52 PM
craig.topper requested review of this revision.Feb 25 2022, 9:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 25 2022, 9:52 PM
RKSimon accepted this revision.Mar 1 2022, 4:00 AM

LGTM

This revision is now accepted and ready to land.Mar 1 2022, 4:00 AM
This revision was landed with ongoing or failed builds.Mar 1 2022, 10:09 AM
This revision was automatically updated to reflect the committed changes.