Preserve debug info from a dead ‘and’ instruction with a constant.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM.
As a follow-up, I think we should move the dce-and/dce-or tests to test/Transforms/InstCombine/debuginfo-variables.ll. I can send in patch later today to do that.
Comment Actions
Actually, would you mind rebasing and moving the test into 'test/Transforms/InstCombine/debuginfo-variables.ll' before landing this? It'd be a bit easier to understand that way and we'll avoid an extra move commit.