[DAGCombiner] Move debug message and statistic update into CommitTargetLoweringOpt.
authorCraig Topper <craig.topper@gmail.com>
Sun, 31 May 2020 01:40:17 +0000 (18:40 -0700)
committerCraig Topper <craig.topper@gmail.com>
Sun, 31 May 2020 02:47:07 +0000 (19:47 -0700)
commita4dd45b7d09d8c12b87eaa0e6d1a92ce2b0defe0
tree01c34be171f9984256c42d9da68aa18722aa74e0
parentaf1accdd860d4e1768a1f56a8651ae4d13445e14
[DAGCombiner] Move debug message and statistic update into CommitTargetLoweringOpt.

This code was repeated in two callers of CommitTargetLoweringOpt.
But CommitTargetLoweringOpt is also called from TargetLowering.
We should print a message for those calls to. So sink the
repeated code into CommitTargetLoweringOpt to catch those calls.
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp