EarlyCSE didn't try to salvage debug info during erasing of instructions. This fixes that.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
I think the test case could probably be reduced a bit (is 'ctpop' necessary?), but apart from that, this looks good. @aprantl wdyt?
test/Transforms/EarlyCSE/debuginfo-dce.ll | ||
---|---|---|
1–7 ↗ | (On Diff #127893) | I'm under the impression this test case can be simplified. Can you give it a try? |
Comment Actions
LGTM modulo minor.
test/Transforms/EarlyCSE/debuginfo-dce.ll | ||
---|---|---|
2–3 ↗ | (On Diff #128928) | unneeded. |