[llvm] r335773 - [DAGCombine] Disable TokenFactor simplifications when optnone.
Nirav Davé via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 27 13:07:37 PDT 2018
This should be labelled NFCI as TokenFactor cleanups do not change the
dependencies directly.
They only indirectly enable other optimizations which are already disabled
for optnone.
-Nirav
On Wed, Jun 27, 2018 at 3:52 PM, Roman Lebedev <lebedev.ri at gmail.com> wrote:
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180627/25814aa3/attachment.html>
More information about the llvm-commits
mailing list