Invert the logic of reachesChainWithoutSideEffects(). What we want to check is that...
authorOwen Anderson <resistor@mac.com>
Sat, 18 Sep 2010 04:45:14 +0000 (04:45 +0000)
committerOwen Anderson <resistor@mac.com>
Sat, 18 Sep 2010 04:45:14 +0000 (04:45 +0000)
commit14ac1dd2be4f72ae1e48a1fd1c2f9bedc7f980e2
tree01a64e0cf949843d00bcdc8d16dfd47384a49c30
parentc109556a0a7f0dca78f60967c3560fcaa27097a0
Invert the logic of reachesChainWithoutSideEffects().  What we want to check is that there is
NO path to the destination containing side effects, not that SOME path contains no side effects.
In  practice, this only manifests with CombinerAA enabled, because otherwise the chain has little
to no branching, so "any" is effectively equivalent to "all".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114268 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
test/CodeGen/X86/2010-09-17-SideEffectsInChain.ll [new file with mode: 0644]