Adding the pre-header to CSEBlocks ensures instructions are CSE'd even
after hoisting.
This was original discovered by @atrick a while ago.
Paths
| Differential D133649
[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 This was original discovered by @atrick a while ago.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Sep 10 2022, 1:01 PM Closed by commit rG3fd1cc257436: [SLP] Add Preheader to CSE blocks after hoisting CSE-able instrs. (authored by fhahn). · Explain WhySep 12 2022, 7:53 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 459461 llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
llvm/test/Transforms/SLPVectorizer/X86/cse.ll
|