This is an archive of the discontinued LLVM Phabricator instance.

[TargetLowering] Extract simplifySetCCs ctpop into a separate function. NFCI
ClosedPublic

Authored by craig.topper on Oct 15 2020, 1:43 PM.

Details

Summary

As requested in D89346 . This allows us to add some early outs.

I reordered some checks a little bit to make the more common bail outs happen earlier. Like checking opcode before checking hasOneUse. And I moved the bit width check to make sure it was safe to look through a truncate to the spot where we look through truncates instead of after.

Diff Detail

Event Timeline

craig.topper created this revision.Oct 15 2020, 1:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 15 2020, 1:43 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
craig.topper requested review of this revision.Oct 15 2020, 1:43 PM
spatel accepted this revision.Oct 16 2020, 5:05 AM

LGTM

This revision is now accepted and ready to land.Oct 16 2020, 5:05 AM