[PATCH] D127726: [test][SimplifyCFG] Precommit test with GEP instructions

Elena Lepilkina via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 14 01:29:15 PDT 2022


eklepilkina created this revision.
Herald added subscribers: luke957, luismarques, s.egerton, PkmX, simoncook, hiraditya, arichardson.
Herald added a project: All.
eklepilkina requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

GEP instructions used in PHI node after sinking common code have same base pointer.

[SimplifyCFG] Don't sink common code if PHI node with some GEPs is created

Creating PHI node which contains elements from same entity got with GEP instructions doesn't allow later sink these GEP instructions on CodeGenPrepare phase.
This prevents generating offset addressing on such targets as RISC-V.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D127726

Files:
  llvm/lib/Transforms/Utils/SimplifyCFG.cpp
  llvm/test/Transforms/SimplifyCFG/X86/sink-common-code.ll
  llvm/test/Transforms/SimplifyCFG/phi-with-geps-sink.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127726.436698.patch
Type: text/x-patch
Size: 13015 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220614/49c15b5e/attachment-0001.bin>


More information about the llvm-commits mailing list