[SimpleLoopUnswitch] Implement handling of prof branch_weights metadata for SwitchInst
authorYevgeny Rouban <yevgeny.rouban@azul.com>
Mon, 1 Jul 2019 08:43:53 +0000 (08:43 +0000)
committerYevgeny Rouban <yevgeny.rouban@azul.com>
Mon, 1 Jul 2019 08:43:53 +0000 (08:43 +0000)
commitd4097b4a93a2bb303b9131d8293992bc6b63b2f9
treedf3b6b118a3f928ce0404765ec3182cc379289c1
parent98722691b0b5e375fdd02c9a464476752a3c598e
[SimpleLoopUnswitch] Implement handling of prof branch_weights metadata for SwitchInst

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

llvm-svn: 364734
llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
llvm/test/Transforms/SimpleLoopUnswitch/basictest-profmd.ll [new file with mode: 0644]
llvm/test/Transforms/SimpleLoopUnswitch/trivial-unswitch-profmd.ll [new file with mode: 0644]