[PATCH] D38619: [GVN] Prevent ScalarPRE 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 Oct 6 04:50:59 PDT 2017


mkazantsev created this revision.

This is to address a problem similar to those in https://reviews.llvm.org/D37460 for Scalar PRE. We should not
PRE across an instruction that may not pass execution to its successor unless it is safe
to speculatively execute it.


https://reviews.llvm.org/D38619

Files:
  lib/Transforms/Scalar/GVN.cpp
  test/Transforms/GVN/PRE/local-pre.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38619.117982.patch
Type: text/x-patch
Size: 3540 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171006/e7333b02/attachment.bin>


More information about the llvm-commits mailing list