projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cb2199
)
[DAGCombine] Disable TokenFactor simplifications when optnone.
author
Nirav Dave
<niravd@google.com>
Wed, 27 Jun 2018 19:41:25 +0000
(19:41 +0000)
committer
Nirav Dave
<niravd@google.com>
Wed, 27 Jun 2018 19:41:25 +0000
(19:41 +0000)
llvm-svn: 335773
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index
1b88f7c
..
723ab66
100644
(file)
--- a/
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@
-1692,6
+1692,10
@@
SDValue DAGCombiner::visitTokenFactor(SDNode *N) {
return N->getOperand(1);
}
+ // Don't simplify token factors if optnone.
+ if (OptLevel == CodeGenOpt::None)
+ return SDValue();
+
SmallVector<SDNode *, 8> TFs; // List of token factors to visit.
SmallVector<SDValue, 8> Ops; // Ops for replacing token factor.
SmallPtrSet<SDNode*, 16> SeenOps;