[DebugInfo] Ensure that a demanded bits optimisation in
authorChris Jackson <chris.jackson@sony.com>
Mon, 30 Mar 2020 14:08:26 +0000 (15:08 +0100)
committerChris Jackson <chris.jackson@sony.com>
Mon, 30 Mar 2020 14:39:22 +0000 (15:39 +0100)
commitf6b2c003f360c3d0dcfe13d751805643f229f79b
tree68c73b8a8adcde68b27206479a8a2e7ccd691e7e
parent7899a111ea1160e2ae0aae42de37b14a0b75d71b
[DebugInfo]  Ensure that a demanded bits optimisation in
InstCombine does not result in an incorrect debuginfo variable
value

- Add an additional salvage and a test.

Reviewers: aprantl, djtodoro

Differential Revision: https://reviews.llvm.org/D76854

Bugzilla:  https://bugs.llvm.org/show_bug.cgi?id=44371
llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
llvm/test/DebugInfo/X86/instcombine-demanded-bits-salvage.ll [new file with mode: 0644]