diff options
author | Nirav Dave <niravd@google.com> | 2018-06-27 19:41:25 +0000 |
---|---|---|
committer | Nirav Dave <niravd@google.com> | 2018-06-27 19:41:25 +0000 |
commit | 7c57ae57a890126ba646bd97dc94ba00e5e96704 (patch) | |
tree | 43bf37049b5156f682aac190d4b9f4eb17ab1be5 /llvm/lib/CodeGen | |
parent | 2cb2199948683280e1c00cf9f08401699782311b (diff) | |
download | bcm5719-llvm-7c57ae57a890126ba646bd97dc94ba00e5e96704.tar.gz bcm5719-llvm-7c57ae57a890126ba646bd97dc94ba00e5e96704.zip |
[DAGCombine] Disable TokenFactor simplifications when optnone.
llvm-svn: 335773
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 1b88f7cf888..723ab6615cf 100644 --- 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; |