Disable statistics on Release builds and move tests that depend on -stats.
authorJan Wen Voung <jvoung@google.com>
Fri, 8 Mar 2013 22:56:31 +0000 (22:56 +0000)
committerJan Wen Voung <jvoung@google.com>
Fri, 8 Mar 2013 22:56:31 +0000 (22:56 +0000)
commitfa785cb22d50c657eb08c762d627cd6aa96982f3
tree8cf730a27cbe3d59e14adb2e0e2ed6d3f836850b
parentd25c05efd55fe190a50965b31e04db69bd8e19de
Disable statistics on Release builds and move tests that depend on -stats.

Summary:
Statistics are still available in Release+Asserts (any +Asserts builds),
and stats can also be turned on with LLVM_ENABLE_STATS.

Move some of the FastISel stats that were moved under DEBUG()
back out of DEBUG(), since stats are disabled across the board now.

Many tests depend on grepping "-stats" output.  Move those into
a orig_dir/Stats/. so that they can be marked as unsupported
when building without statistics.

Differential Revision: http://llvm-reviews.chandlerc.com/D486

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176733 91177308-0d34-0410-b5e6-96231b3b80d8
164 files changed:
include/llvm/ADT/Statistic.h
lib/CodeGen/SelectionDAG/FastISel.cpp
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
lib/Support/Statistic.cpp
test/Analysis/RegionInfo/Stats/block_sort.ll [new file with mode: 0644]
test/Analysis/RegionInfo/Stats/cond_loop.ll [new file with mode: 0644]
test/Analysis/RegionInfo/Stats/condition_complicated.ll [new file with mode: 0644]
test/Analysis/RegionInfo/Stats/condition_complicated_2.ll [new file with mode: 0644]
test/Analysis/RegionInfo/Stats/condition_forward_edge.ll [new file with mode: 0644]
test/Analysis/RegionInfo/Stats/condition_same_exit.ll [new file with mode: 0644]
test/Analysis/RegionInfo/Stats/condition_simple.ll [new file with mode: 0644]
test/Analysis/RegionInfo/Stats/exit_in_condition.ll [new file with mode: 0644]
test/Analysis/RegionInfo/Stats/infinite_loop.ll [new file with mode: 0644]
test/Analysis/RegionInfo/Stats/infinite_loop_2.ll [new file with mode: 0644]
test/Analysis/RegionInfo/Stats/infinite_loop_3.ll [new file with mode: 0644]
test/Analysis/RegionInfo/Stats/infinite_loop_4.ll [new file with mode: 0644]
test/Analysis/RegionInfo/Stats/lit.local.cfg [new file with mode: 0644]
test/Analysis/RegionInfo/Stats/loop_with_condition.ll [new file with mode: 0644]
test/Analysis/RegionInfo/Stats/loops_1.ll [new file with mode: 0644]
test/Analysis/RegionInfo/Stats/loops_2.ll [new file with mode: 0644]
test/Analysis/RegionInfo/Stats/mix_1.ll [new file with mode: 0644]
test/Analysis/RegionInfo/Stats/nested_loops.ll [new file with mode: 0644]
test/Analysis/RegionInfo/Stats/next.ll [new file with mode: 0644]
test/Analysis/RegionInfo/Stats/paper.ll [new file with mode: 0644]
test/Analysis/RegionInfo/Stats/two_loops_same_header.ll [new file with mode: 0644]
test/Analysis/RegionInfo/block_sort.ll [deleted file]
test/Analysis/RegionInfo/cond_loop.ll [deleted file]
test/Analysis/RegionInfo/condition_complicated.ll [deleted file]
test/Analysis/RegionInfo/condition_complicated_2.ll [deleted file]
test/Analysis/RegionInfo/condition_forward_edge.ll [deleted file]
test/Analysis/RegionInfo/condition_same_exit.ll [deleted file]
test/Analysis/RegionInfo/condition_simple.ll [deleted file]
test/Analysis/RegionInfo/exit_in_condition.ll [deleted file]
test/Analysis/RegionInfo/infinite_loop.ll [deleted file]
test/Analysis/RegionInfo/infinite_loop_2.ll [deleted file]
test/Analysis/RegionInfo/infinite_loop_3.ll [deleted file]
test/Analysis/RegionInfo/infinite_loop_4.ll [deleted file]
test/Analysis/RegionInfo/loop_with_condition.ll [deleted file]
test/Analysis/RegionInfo/loops_1.ll [deleted file]
test/Analysis/RegionInfo/loops_2.ll [deleted file]
test/Analysis/RegionInfo/mix_1.ll [deleted file]
test/Analysis/RegionInfo/nested_loops.ll [deleted file]
test/Analysis/RegionInfo/next.ll [deleted file]
test/Analysis/RegionInfo/paper.ll [deleted file]
test/Analysis/RegionInfo/two_loops_same_header.ll [deleted file]
test/CodeGen/ARM/2007-03-13-InstrSched.ll [deleted file]
test/CodeGen/ARM/2011-12-14-machine-sink.ll [deleted file]
test/CodeGen/ARM/Stats/2007-03-13-InstrSched.ll [new file with mode: 0644]
test/CodeGen/ARM/Stats/2011-12-14-machine-sink.ll [new file with mode: 0644]
test/CodeGen/ARM/Stats/addrmode.ll [new file with mode: 0644]
test/CodeGen/ARM/Stats/lit.local.cfg [new file with mode: 0644]
test/CodeGen/ARM/addrmode.ll [deleted file]
test/CodeGen/PowerPC/Stats/iabs.ll [new file with mode: 0644]
test/CodeGen/PowerPC/Stats/lit.local.cfg [new file with mode: 0644]
test/CodeGen/PowerPC/Stats/rlwimi3.ll [new file with mode: 0644]
test/CodeGen/PowerPC/iabs.ll [deleted file]
test/CodeGen/PowerPC/rlwimi3.ll [deleted file]
test/CodeGen/X86/2003-08-03-CallArgLiveRanges.ll [deleted file]
test/CodeGen/X86/2006-03-02-InstrSchedBug.ll [deleted file]
test/CodeGen/X86/2006-05-01-SchedCausingSpills.ll [deleted file]
test/CodeGen/X86/2006-05-02-InstrSched1.ll [deleted file]
test/CodeGen/X86/2006-05-02-InstrSched2.ll [deleted file]
test/CodeGen/X86/2006-05-11-InstrSched.ll [deleted file]
test/CodeGen/X86/2008-02-18-TailMergingBug.ll [deleted file]
test/CodeGen/X86/2008-10-27-CoalescerBug.ll [deleted file]
test/CodeGen/X86/2009-02-25-CommuteBug.ll [deleted file]
test/CodeGen/X86/2009-02-26-MachineLICMBug.ll [deleted file]
test/CodeGen/X86/2009-03-23-MultiUseSched.ll [deleted file]
test/CodeGen/X86/2009-04-16-SpillerUnfold.ll [deleted file]
test/CodeGen/X86/2010-01-19-OptExtBug.ll [deleted file]
test/CodeGen/X86/2011-06-12-FastAllocSpill.ll [deleted file]
test/CodeGen/X86/2012-03-26-PostRALICMBug.ll [deleted file]
test/CodeGen/X86/MachineSink-PHIUse.ll [deleted file]
test/CodeGen/X86/Stats/2003-08-03-CallArgLiveRanges.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/2006-03-02-InstrSchedBug.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/2006-05-01-SchedCausingSpills.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/2006-05-02-InstrSched1.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/2006-05-02-InstrSched2.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/2006-05-11-InstrSched.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/2008-02-18-TailMergingBug.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/2008-10-27-CoalescerBug.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/2009-02-25-CommuteBug.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/2009-02-26-MachineLICMBug.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/2009-03-23-MultiUseSched.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/2009-04-16-SpillerUnfold.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/2010-01-19-OptExtBug.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/2011-06-12-FastAllocSpill.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/2012-03-26-PostRALICMBug.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/MachineSink-PHIUse.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/constant-pool-remat-0.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/convert-2-addr-3-addr-inc64.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/dagcombine-cse.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/hoist-invariant-load.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/licm-nested.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/lit.local.cfg [new file with mode: 0644]
test/CodeGen/X86/Stats/phi-immediate-factoring.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/pr3522.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/regpressure.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/twoaddr-coalesce-2.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/twoaddr-pass-sink.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/vec_insert-6.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/vec_shuffle-19.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/vec_shuffle-20.ll [new file with mode: 0644]
test/CodeGen/X86/Stats/zero-remat.ll [new file with mode: 0644]
test/CodeGen/X86/constant-pool-remat-0.ll [deleted file]
test/CodeGen/X86/convert-2-addr-3-addr-inc64.ll [deleted file]
test/CodeGen/X86/dagcombine-cse.ll [deleted file]
test/CodeGen/X86/hoist-invariant-load.ll [deleted file]
test/CodeGen/X86/licm-nested.ll [deleted file]
test/CodeGen/X86/phi-immediate-factoring.ll [deleted file]
test/CodeGen/X86/pr3522.ll [deleted file]
test/CodeGen/X86/regpressure.ll [deleted file]
test/CodeGen/X86/twoaddr-coalesce-2.ll [deleted file]
test/CodeGen/X86/twoaddr-pass-sink.ll [deleted file]
test/CodeGen/X86/vec_insert-6.ll [deleted file]
test/CodeGen/X86/vec_shuffle-19.ll [deleted file]
test/CodeGen/X86/vec_shuffle-20.ll [deleted file]
test/CodeGen/X86/zero-remat.ll [deleted file]
test/Transforms/GVN/Stats/lit.local.cfg [new file with mode: 0644]
test/Transforms/GVN/Stats/nonescaping-malloc.ll [new file with mode: 0644]
test/Transforms/GVN/nonescaping-malloc.ll [deleted file]
test/Transforms/GlobalOpt/2009-03-05-dbg.ll [deleted file]
test/Transforms/GlobalOpt/Stats/2009-03-05-dbg.ll [new file with mode: 0644]
test/Transforms/GlobalOpt/Stats/lit.local.cfg [new file with mode: 0644]
test/Transforms/IndVarSimplify/Stats/lit.local.cfg [new file with mode: 0644]
test/Transforms/IndVarSimplify/Stats/phi-uses-value-multiple-times.ll [new file with mode: 0644]
test/Transforms/IndVarSimplify/phi-uses-value-multiple-times.ll [deleted file]
test/Transforms/Inline/Stats/delete-call.ll [new file with mode: 0644]
test/Transforms/Inline/Stats/lit.local.cfg [new file with mode: 0644]
test/Transforms/Inline/delete-call.ll [deleted file]
test/Transforms/LICM/Stats/hoist-invariant-load.ll [new file with mode: 0644]
test/Transforms/LICM/Stats/lit.local.cfg [new file with mode: 0644]
test/Transforms/LICM/hoist-invariant-load.ll [deleted file]
test/Transforms/LoopUnroll/Stats/lit.local.cfg [new file with mode: 0644]
test/Transforms/LoopUnroll/Stats/runtime-loop3.ll [new file with mode: 0644]
test/Transforms/LoopUnroll/runtime-loop3.ll [deleted file]
test/Transforms/LoopUnswitch/2008-11-03-Invariant.ll [deleted file]
test/Transforms/LoopUnswitch/2011-11-18-SimpleSwitch.ll [deleted file]
test/Transforms/LoopUnswitch/2011-11-18-TwoSwitches-Threshold.ll [deleted file]
test/Transforms/LoopUnswitch/2011-11-18-TwoSwitches.ll [deleted file]
test/Transforms/LoopUnswitch/Stats/2008-11-03-Invariant.ll [new file with mode: 0644]
test/Transforms/LoopUnswitch/Stats/2011-11-18-SimpleSwitch.ll [new file with mode: 0644]
test/Transforms/LoopUnswitch/Stats/2011-11-18-TwoSwitches-Threshold.ll [new file with mode: 0644]
test/Transforms/LoopUnswitch/Stats/2011-11-18-TwoSwitches.ll [new file with mode: 0644]
test/Transforms/LoopUnswitch/Stats/infinite-loop.ll [new file with mode: 0644]
test/Transforms/LoopUnswitch/Stats/lit.local.cfg [new file with mode: 0644]
test/Transforms/LoopUnswitch/infinite-loop.ll [deleted file]
test/Transforms/MergeFunc/Stats/lit.local.cfg [new file with mode: 0644]
test/Transforms/MergeFunc/Stats/phi-speculation1.ll [new file with mode: 0644]
test/Transforms/MergeFunc/Stats/phi-speculation2.ll [new file with mode: 0644]
test/Transforms/MergeFunc/Stats/vector.ll [new file with mode: 0644]
test/Transforms/MergeFunc/Stats/vectors-and-arrays.ll [new file with mode: 0644]
test/Transforms/MergeFunc/phi-speculation1.ll [deleted file]
test/Transforms/MergeFunc/phi-speculation2.ll [deleted file]
test/Transforms/MergeFunc/vector.ll [deleted file]
test/Transforms/MergeFunc/vectors-and-arrays.ll [deleted file]
test/Transforms/TailCallElim/Stats/ackermann.ll [new file with mode: 0644]
test/Transforms/TailCallElim/Stats/dup_tail.ll [new file with mode: 0644]
test/Transforms/TailCallElim/Stats/lit.local.cfg [new file with mode: 0644]
test/Transforms/TailCallElim/ackermann.ll [deleted file]
test/Transforms/TailCallElim/dup_tail.ll [deleted file]
test/Transforms/TailDup/2008-06-11-AvoidDupLoopHeader.ll [deleted file]
test/Transforms/TailDup/Stats/2008-06-11-AvoidDupLoopHeader.ll [new file with mode: 0644]
test/Transforms/TailDup/Stats/lit.local.cfg [new file with mode: 0644]