[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
Thu Apr 6 00:07:38 PDT 2023


fakepaper56 updated this revision to Diff 511296.
fakepaper56 added a comment.

Make LoadStoreUseFoldableGEP consider whether OI is pointer operand index or not.
It's needed since store value may be a GEP instruction.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147448/new/

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.511296.patch
Type: text/x-patch
Size: 15082 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230406/0b89baf6/attachment.bin>


More information about the llvm-commits mailing list