[PATCH] D25318: [DAG] Don't increase SDNodeOrder for dbg.value/declare.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 1 08:09:13 PST 2016
fhahn added a comment.
I've tested your change and it solves my test case in https://reviews.llvm.org/D27261 as well. This patch is slightly nicer then mine (https://reviews.llvm.org/D27261) imo.
================
Comment at: lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:977
+ // Increase the SDNodeOrder if dealing with a non-debug instruction
+ if (!isa<DbgValueInst>(I) && !isa<DbgDeclareInst>(I))
+ ++SDNodeOrder;
----------------
I think you could use if (!isa<DbgInfoIntrinsic>(I)) here.
https://reviews.llvm.org/D25318
More information about the llvm-commits
mailing list