[llvm] r335773 - [DAGCombine] Disable TokenFactor simplifications when optnone.
Roman Lebedev via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 27 12:52:27 PDT 2018
Test?
On Wed, Jun 27, 2018 at 10:41 PM, Nirav Dave via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> 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;
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list