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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
This is correct but please simplify the testcase :) [I don't think you need branch weight metadata]
Comment Actions
LGTM
test/Transforms/SROA/dead-inst.ll | ||
---|---|---|
14–15 ↗ | (On Diff #123611) | you don't need these two. |