[PATCH] D147448: [SimplifyCFG] Teach SinkCommonCodeFromPredecessors not to replace foldable GEPs with phi-nodes for sinking load/store.

Yeting Kuo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 3 08:36:09 PDT 2023


fakepaper56 created this revision.
Herald added subscribers: luke, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
Herald added a project: All.
fakepaper56 requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, MaskRay.
Herald added a project: LLVM.

Currently, SinkCommonCodeFromPredecessors may sink load/store instructions whose
pointer operands are foldable GEPs and replacing those GEPs to phi-nodes if
needed. It's ineffecient if those GEPs could be folded to load/store for target.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D147448

Files:
  llvm/lib/Transforms/Utils/SimplifyCFG.cpp
  llvm/test/Transforms/PhaseOrdering/X86/earlycse-after-simplifycfg-two-entry-phi-node-folding.ll
  llvm/test/Transforms/SimplifyCFG/RISCV/sink-common-code.ll
  llvm/test/Transforms/SimplifyCFG/X86/sink-common-code.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147448.510512.patch
Type: text/x-patch
Size: 14676 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230403/cd427676/attachment.bin>


More information about the llvm-commits mailing list