[PATCH] D39921: [SROA] Correctly invalidate analyses when dead instructions deleted

Teresa Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 10 13:29:50 PST 2017


tejohnson created this revision.

SROA can fail in rewriting alloca but still rewrite a phi resulting
in dead instruction elimination. The Changed flag was not being set
correctly, resulting in downstream passes using stale analyses.
The included test case will assert during the second BDCE pass as a
result.


https://reviews.llvm.org/D39921

Files:
  include/llvm/Transforms/Scalar/SROA.h
  lib/Transforms/Scalar/SROA.cpp
  test/Transforms/SROA/dead-inst.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39921.122516.patch
Type: text/x-patch
Size: 7739 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171110/20515279/attachment.bin>


More information about the llvm-commits mailing list