[InstCombine] Fix debug variance issue in tryToMoveFreeBeforeNullTest
authorVedant Kumar <vsk@apple.com>
Fri, 10 Apr 2020 23:47:09 +0000 (16:47 -0700)
committerVedant Kumar <vsk@apple.com>
Mon, 13 Apr 2020 17:55:17 +0000 (10:55 -0700)
commit4831f4b7bdeb22e405248c45b3ea607a6b28b991
tree0c6326c40dd64423fb4812e4dd9e06dfddcefe4a
parent122a6bfb07eb1ec7332ad1ee2e1a2136cc54a9c6
[InstCombine] Fix debug variance issue in tryToMoveFreeBeforeNullTest

Fix an issue where the presence of debug info could disable an
optimization in tryToMoveFreeBeforeNullTest.
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
llvm/test/Transforms/InstCombine/malloc-free-delete-dbginvar.ll [new file with mode: 0644]