[PATCH] D37460: [GVN] Prevent LoadPRE from hoisting across instructions that don't pass control flow to successors

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 2 02:30:06 PDT 2017


mkazantsev updated this revision to Diff 117313.
mkazantsev marked an inline comment as done.
mkazantsev added a comment.

Reworked with `OrderedInstructions`.


https://reviews.llvm.org/D37460

Files:
  include/llvm/Transforms/Scalar/GVN.h
  lib/Transforms/Scalar/GVN.cpp
  test/Transforms/GVN/PRE/local-pre.ll
  test/Transforms/GVN/PRE/phi-translate-2.ll
  test/Transforms/GVN/PRE/pre-basic-add.ll
  test/Transforms/GVN/PRE/pre-gep-load.ll
  test/Transforms/GVN/PRE/pre-load-guards.ll
  test/Transforms/GVN/PRE/pre-load.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37460.117313.patch
Type: text/x-patch
Size: 14412 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171002/0c141ca3/attachment.bin>


More information about the llvm-commits mailing list