projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10b4948
)
Fold trivial two-operand tokenfactors where the operands are equal
author
Dan Gohman
<gohman@apple.com>
Wed, 1 Oct 2008 15:11:19 +0000
(15:11 +0000)
committer
Dan Gohman
<gohman@apple.com>
Wed, 1 Oct 2008 15:11:19 +0000
(15:11 +0000)
immediately.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56921
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index eba3a2a9ce410b27967a5f722fcab37542ccdf11..3d0a2d6e50cce2989bff7099ca5f3d0a6127deff 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@
-2320,6
+2320,7
@@
SDValue SelectionDAG::getNode(unsigned Opcode, MVT VT,
// Fold trivial token factors.
if (N1.getOpcode() == ISD::EntryToken) return N2;
if (N2.getOpcode() == ISD::EntryToken) return N1;
+ if (N1 == N2) return N1;
break;
case ISD::CONCAT_VECTORS:
// A CONCAT_VECTOR with all operands BUILD_VECTOR can be simplified to