Fix SelectionDAG compile time issue with alias analysis.
authorJonas Paulsson <jonas.paulsson@ericsson.com>
Wed, 11 Feb 2015 16:10:31 +0000 (16:10 +0000)
committerJonas Paulsson <jonas.paulsson@ericsson.com>
Wed, 11 Feb 2015 16:10:31 +0000 (16:10 +0000)
commitfc58cf76769d6d9d86f2057104f0a639563268a4
treec0b8db2ce8abb0afeecbea85c427e5427f291af8
parentcb2ff33a8abcecc6205a92fb397c892a260d3404
Fix SelectionDAG compile time issue with alias analysis.

Add new token factor node and its users to worklist if alias analysis is
turned on, in DAGCombiner::visitTokenFactor(). Alias analysis may cause
a lot of new token factors to be inserted into the DAG, and they need to
be optimized to avoid significant slow-downs.

Reviewed by Hal Finkel.

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