This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine][Analysis] Move getFCmpCode and getPredForFCmpCode to CmpInstAnalysis. NFC
ClosedPublic

Authored by craig.topper on Mar 1 2022, 10:42 AM.

Details

Summary

The similar getICmpCode and getPredForICmpCode are already there.
This moves FP for consistency.

I think InstCombine is currently the only user of both.

Diff Detail

Event Timeline

craig.topper created this revision.Mar 1 2022, 10:42 AM
craig.topper requested review of this revision.Mar 1 2022, 10:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2022, 10:42 AM
RKSimon accepted this revision.Mar 3 2022, 2:11 AM

LGTM - with one minor formatting query

llvm/include/llvm/Analysis/CmpInstAnalysis.h
67

Has the indentation been altered for the ULGE column headers or is it just phab?

This revision is now accepted and ready to land.Mar 3 2022, 2:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 3 2022, 2:11 AM
This revision was landed with ongoing or failed builds.Mar 3 2022, 9:33 AM
This revision was automatically updated to reflect the committed changes.