[llvm] r335773 - [DAGCombine] Disable TokenFactor simplifications when optnone.
Nirav Dave via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 27 12:41:25 PDT 2018
Author: niravd
Date: Wed Jun 27 12:41:25 2018
New Revision: 335773
URL: http://llvm.org/viewvc/llvm-project?rev=335773&view=rev
Log:
[DAGCombine] Disable TokenFactor simplifications when optnone.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=335773&r1=335772&r2=335773&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Wed Jun 27 12:41:25 2018
@@ -1692,6 +1692,10 @@ SDValue DAGCombiner::visitTokenFactor(SD
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;
More information about the llvm-commits
mailing list