This is an archive of the discontinued LLVM Phabricator instance.

RISCV] Teach RISCVTargetLowering::shouldSinkOperands to sink splats for and/or/xor.
ClosedPublic

Authored by craig.topper on Sep 20 2021, 1:53 PM.

Details

Summary

This requires a minor change to CodeGenPrepare to ensure that
shouldSinkOperands will be called for And.

Diff Detail

Event Timeline

craig.topper created this revision.Sep 20 2021, 1:53 PM
craig.topper requested review of this revision.Sep 20 2021, 1:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 20 2021, 1:53 PM
Herald added a subscriber: MaskRay. · View Herald Transcript
frasercrmck accepted this revision.Sep 21 2021, 9:51 AM

Makes sense to me. I was trying to see if there are other targets that would benefit from this change but from what I can see there aren't any which sink Ands.

This revision is now accepted and ready to land.Sep 21 2021, 9:51 AM
This revision was landed with ongoing or failed builds.Sep 21 2021, 10:08 AM
This revision was automatically updated to reflect the committed changes.