OSDN Git Service

Codegen: IfConversion: Factor out a function to count dup instrs.
authorKyle Butt <kyle+llvm@iteratee.net>
Wed, 27 Jul 2016 20:19:33 +0000 (20:19 +0000)
committerKyle Butt <kyle+llvm@iteratee.net>
Wed, 27 Jul 2016 20:19:33 +0000 (20:19 +0000)
commitefe4c058dab6859490a067436e1784d07dccb5b7
tree2eb02cb567f7c5e07df76d725a7d3d968f70467e
parent3fcba988901f94b383469fc9418d1471f43d492c
Codegen: IfConversion: Factor out a function to count dup instrs.

Factor out countDuplicatedInstructions to Count duplicated instructions at the
beginning and end of a diamond pattern. This is in prep for adding support for
diamonds that need to be tail-merged.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276910 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/IfConversion.cpp