[SimpleLoopUnswitch] Increment stats counter for unswitching switch instruction
authorZaara Syeda <syzaara@ca.ibm.com>
Tue, 15 Jan 2019 15:08:01 +0000 (15:08 +0000)
committerZaara Syeda <syzaara@ca.ibm.com>
Tue, 15 Jan 2019 15:08:01 +0000 (15:08 +0000)
commitb7dff9c9af26108df8fdc9603b8d954e6d4721a5
tree2dd4bb8f0d2e684018a9fd979c8089aa6321c524
parent3687c3e90653fa0c8da9e70d12ab50877bc691af
[SimpleLoopUnswitch] Increment stats counter for unswitching switch instruction

Increment statistics counter NumSwitches at unswitchNontrivialInvariants() for
unswitching a non-trivial switch instruction. This is to fix a bug that it
increments NumBranches even for the case of switch instruction.
There is no functional change in this patch.

Differential Revision: https://reviews.llvm.org/D56408

llvm-svn: 351193
llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp