OSDN Git Service

SCEVExpander: Don't crash when trying to merge two constant phis.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 19 Oct 2012 16:37:30 +0000 (16:37 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 19 Oct 2012 16:37:30 +0000 (16:37 +0000)
commit239fd44f7a68aae4b2e8b6f1738ef9e8fd4ddc01
treef8f67d4ffc122a3bf495e0b6bda03fdb6d55a5da
parent34674fea970b20dde4336a06a12732211d1cfa04
SCEVExpander: Don't crash when trying to merge two constant phis.

Just constant fold them so they can't cause any trouble. Fixes PR12627.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166286 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolutionExpander.cpp
test/Transforms/IndVarSimplify/2012-10-19-congruent-constant.ll [new file with mode: 0644]
test/Transforms/IndVarSimplify/no-iv-rewrite.ll