This is an archive of the discontinued LLVM Phabricator instance.

[SLP] Add Preheader to CSE blocks after hoisting CSE-able instrs.
ClosedPublic

Authored by fhahn on Sep 10 2022, 12:59 PM.

Details

Summary

Adding the pre-header to CSEBlocks ensures instructions are CSE'd even
after hoisting.

This was original discovered by @atrick a while ago.

Diff Detail

Event Timeline

fhahn created this revision.Sep 10 2022, 12:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 10 2022, 12:59 PM
fhahn requested review of this revision.Sep 10 2022, 12:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 10 2022, 12:59 PM
This revision is now accepted and ready to land.Sep 10 2022, 1:01 PM