[PATCH] D38944: [GVN] Handle removal of first implicit CF instruction correctly

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 16 02:23:52 PDT 2017


mkazantsev created this revision.

When erasing an instruction, we can erase the one which is the first implicit
control flow instruction in the block. This will invalidate the respective map.
This patch ensures that we re-calculate the `FirstImplicitControlFlowInsts` for
a block every time we remove the first implicit CF instruction.


https://reviews.llvm.org/D38944

Files:
  include/llvm/Transforms/Scalar/GVN.h
  lib/Transforms/Scalar/GVN.cpp
  test/Transforms/GVN/PRE/2017-10-16-LoadPRECrash.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38944.119120.patch
Type: text/x-patch
Size: 4947 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171016/1dfab952/attachment.bin>


More information about the llvm-commits mailing list