diff options
author | Pete Cooper <peter_cooper@apple.com> | 2012-02-15 00:33:37 +0000 |
---|---|---|
committer | Pete Cooper <peter_cooper@apple.com> | 2012-02-15 00:33:37 +0000 |
commit | 9989a63818581bcfeed730e42055af425fdf9353 (patch) | |
tree | a146f356fdf42cba840a8126cb042ab03bd8eaac /lib/Target | |
parent | 92fd01736484262fef049b7358366d8eab2f857e (diff) | |
download | external_llvm-9989a63818581bcfeed730e42055af425fdf9353.zip external_llvm-9989a63818581bcfeed730e42055af425fdf9353.tar.gz external_llvm-9989a63818581bcfeed730e42055af425fdf9353.tar.bz2 |
Stop custom lowering forr x86 DEC64m from happening if the load in the lowered sequence has more than 1 user
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150537 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/X86/X86ISelDAGToDAG.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/X86/X86ISelDAGToDAG.cpp b/lib/Target/X86/X86ISelDAGToDAG.cpp index 709be5f..16f9c46 100644 --- a/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/lib/Target/X86/X86ISelDAGToDAG.cpp @@ -2379,6 +2379,7 @@ SDNode *X86DAGToDAGISel::Select(SDNode *Node) { StoredVal->getOpcode() != X86ISD::DEC || StoredVal.getResNo() != 0 || !StoredVal.getNode()->hasNUsesOfValue(1, 0) || + !Chain.getNode()->hasNUsesOfValue(1, 0) || StoredVal->getOperand(0).getNode() != Chain.getNode()) break; |