[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
Fri Sep 15 20:18:29 PDT 2017


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

Fixed one more case with PRE, updated tests accordingly.


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.115529.patch
Type: text/x-patch
Size: 14006 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170916/49befae1/attachment.bin>


More information about the llvm-commits mailing list