]> granicus.if.org Git - llvm/commit
[InstCombine] Allow InstrCombine to remove one of adjacent guards if they are equivalent
authorArtur Pilipenko <apilipenko@azulsystems.com>
Wed, 25 Jan 2017 14:12:12 +0000 (14:12 +0000)
committerArtur Pilipenko <apilipenko@azulsystems.com>
Wed, 25 Jan 2017 14:12:12 +0000 (14:12 +0000)
commit7eb9318b9807437ab7a26f6c21a8cab5c892d741
tree6c9d79319f5d7cf1adc817b51832d6855ea2cd1d
parentb6c9077a19ce6b1e3c394ba4d39ede112a5026aa
[InstCombine] Allow InstrCombine to remove one of adjacent guards if they are equivalent

This is a partial fix for Bug 31520 - [guards] canonicalize guards in instcombine

Reviewed By: majnemer, apilipenko

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

Patch by Maxim Kazantsev.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293056 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCalls.cpp
test/Transforms/InstCombine/call-guard.ll [new file with mode: 0644]