Fix for PR3040:
authorBill Wendling <isanbard@gmail.com>
Tue, 11 Nov 2008 08:25:46 +0000 (08:25 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 11 Nov 2008 08:25:46 +0000 (08:25 +0000)
commitae89bb14431c6df4f784ae1af7019e72ec79b3ca
tree8c1ec7944d5adf6a722701c020c519a28f5c468c
parent683a9226532914f2ee9b7ddb9d76e7ee84079e9e
Fix for PR3040:

The CC was changed, but wasn't checked to see if it was legal if the DAG
combiner was being run after legalization. Threw in a couple of checks just to
make sure that it's okay. As far as the PR is concerned, no back-end target
actually exhibited this problem, so there isn't an associated testcase.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59035 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp