Prevent assert in CombinerGlobalAA with null values
authorHal Finkel <hfinkel@anl.gov>
Sun, 15 Sep 2013 02:19:49 +0000 (02:19 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sun, 15 Sep 2013 02:19:49 +0000 (02:19 +0000)
commit77364b7a200682e84f75171f30f8a77005b87e94
tree96b483b8ef8e1b44db2cdb42344c37248445a9bc
parent6febf857f690665bc33b84c957cdefb39a27f63d
Prevent assert in CombinerGlobalAA with null values

DAGCombiner::isAlias can be called with SrcValue1 or SrcValue2 null, and we
can't use AA in this case (if we try, then the casting code in AA will assert).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190763 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/PowerPC/glob-comp-aa-crash.ll [new file with mode: 0644]