Do not try and sink a load whose chain result has more than one use, when
authorNate Begeman <natebegeman@mac.com>
Wed, 16 Sep 2009 03:20:46 +0000 (03:20 +0000)
committerNate Begeman <natebegeman@mac.com>
Wed, 16 Sep 2009 03:20:46 +0000 (03:20 +0000)
commit206a357684ec4f9159905eb7293bfb2221af0e14
tree264d15f502fef4bc74c4edd8bfae40e74726522c
parent8d70854dd8b3f2d7639abd569dbd5a205f602032
Do not try and sink a load whose chain result has more than one use, when
trying to create RMW opportunities in the x86 backend.  This can cause a
cycle to appear in the graph, since the other uses may eventually feed into
the TokenFactor we are sinking the load below.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81996 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelDAGToDAG.cpp