[PredicateInfo][SCCP] Remove assertion (PR46814)
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 23 Jul 2020 17:12:20 +0000 (19:12 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 23 Jul 2020 17:36:51 +0000 (19:36 +0200)
commitdef48b0e8886ce219b4a77c6e7115a4a86147e04
treeaa2635247c7bac162a0059d7f17bd115478a29bf
parentbfc4294ef61d5cf69fffe6b64287a323c003d90f
[PredicateInfo][SCCP] Remove assertion (PR46814)

As long as RenamedOp is not guaranteed to be accurate, we cannot
assert here and should just return false. This was already done
for the other conditions in this function.

Fixes https://bugs.llvm.org/show_bug.cgi?id=46814.
llvm/lib/Transforms/Utils/PredicateInfo.cpp
llvm/test/Transforms/SCCP/predicateinfo-cond.ll