Catch more CHECK that can be converted to CHECK-LABEL in Transforms for easier debugg...
authorStephen Lin <stephenwlin@gmail.com>
Sun, 14 Jul 2013 01:50:49 +0000 (01:50 +0000)
committerStephen Lin <stephenwlin@gmail.com>
Sun, 14 Jul 2013 01:50:49 +0000 (01:50 +0000)
commit15bfd6d3ad739cca0a12049f3e7e94c3645ee881
tree21476928d99a2db9bfb4a6af003f4030160d4703
parent39f4e8d9cce22b60a3417a5f17c847fa5b1daebf
Catch more CHECK that can be converted to CHECK-LABEL in Transforms for easier debugging. No functionality change.

This conversion was done with the following bash script:

  find test/Transforms -name "*.ll" | \
  while read NAME; do
    echo "$NAME"
    if ! grep -q "^; *RUN: *llc" $NAME; then
      TEMP=`mktemp -t temp`
      cp $NAME $TEMP
      sed -n "s/^define [^@]*@\([A-Za-z0-9_]*\)(.*$/\1/p" < $NAME | \
      while read FUNC; do
        sed -i '' "s/;\(.*\)\([A-Za-z0-9_]*\):\( *\)define\([^@]*\)@$FUNC\([( ]*\)\$/;\1\2-LABEL:\3define\4@$FUNC(/g" $TEMP
      done
      mv $TEMP $NAME
    fi
  done

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186269 91177308-0d34-0410-b5e6-96231b3b80d8
63 files changed:
test/Transforms/ConstProp/bswap.ll
test/Transforms/DeadArgElim/keepalive.ll
test/Transforms/DeadStoreElimination/const-pointers.ll
test/Transforms/DeadStoreElimination/no-targetdata.ll
test/Transforms/EarlyCSE/instsimplify-dom.ll
test/Transforms/GVN/edge.ll
test/Transforms/GVN/readattrs.ll
test/Transforms/GlobalOpt/2012-05-11-blockaddress.ll
test/Transforms/GlobalOpt/deadglobal.ll
test/Transforms/Inline/2010-05-31-ByvalTailcall.ll
test/Transforms/Inline/inline_cleanup.ll
test/Transforms/Inline/inline_constprop.ll
test/Transforms/Inline/inline_returns_twice.ll
test/Transforms/Inline/recursive.ll
test/Transforms/InstCombine/2011-06-13-nsw-alloca.ll
test/Transforms/InstCombine/2012-3-15-or-xor-constant.ll
test/Transforms/InstCombine/atomic.ll
test/Transforms/InstCombine/extractvalue.ll
test/Transforms/InstCombine/icmp.ll
test/Transforms/InstCombine/memcpy.ll
test/Transforms/InstCombine/osx-names.ll
test/Transforms/InstCombine/vec_demanded_elts.ll
test/Transforms/InstCombine/weak-symbols.ll
test/Transforms/Internalize/2008-05-09-AllButMain.ll
test/Transforms/Internalize/available_externally.ll
test/Transforms/LICM/atomics.ll
test/Transforms/LICM/hoisting.ll
test/Transforms/LoopRotate/dbgvalue.ll
test/Transforms/LoopRotate/phi-duplicate.ll
test/Transforms/LoopStrengthReduce/uglygep.ll
test/Transforms/LoopVectorize/global_alias.ll
test/Transforms/ObjCARC/arc-annotations.ll
test/Transforms/ObjCARC/basic.ll
test/Transforms/ObjCARC/cfg-hazards.ll
test/Transforms/ObjCARC/contract-storestrong.ll
test/Transforms/ObjCARC/contract-testcases.ll
test/Transforms/ObjCARC/contract.ll
test/Transforms/ObjCARC/empty-block.ll
test/Transforms/ObjCARC/escape.ll
test/Transforms/ObjCARC/gvn.ll
test/Transforms/ObjCARC/intrinsic-use-isolated.ll
test/Transforms/ObjCARC/intrinsic-use.ll
test/Transforms/ObjCARC/invoke.ll
test/Transforms/ObjCARC/nested.ll
test/Transforms/ObjCARC/no-objc-arc-exceptions.ll
test/Transforms/ObjCARC/pointer-types.ll
test/Transforms/ObjCARC/post-inlining.ll
test/Transforms/ObjCARC/retain-block-alloca.ll
test/Transforms/ObjCARC/retain-block-escape-analysis.ll
test/Transforms/ObjCARC/rv.ll
test/Transforms/ObjCARC/split-backedge.ll
test/Transforms/ObjCARC/weak.ll
test/Transforms/SCCP/atomic-load-store.ll
test/Transforms/SCCP/ipsccp-basic.ll
test/Transforms/SCCP/switch.ll
test/Transforms/ScalarRepl/2011-09-22-PHISpeculateInvoke.ll
test/Transforms/ScalarRepl/address-space.ll
test/Transforms/ScalarRepl/inline-vector.ll
test/Transforms/SimplifyCFG/X86/switch_to_lookup_table.ll
test/Transforms/SimplifyCFG/preserve-branchweights-partial.ll
test/Transforms/TailCallElim/2010-06-26-MultipleReturnValues.ll
test/Transforms/TailCallElim/accum_recursion.ll
test/Transforms/TailCallElim/inf-recursion.ll