OSDN Git Service

[IfConversion] Only renormalize probabilities if branches are analyzable
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Mon, 6 Mar 2017 19:12:42 +0000 (19:12 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Mon, 6 Mar 2017 19:12:42 +0000 (19:12 +0000)
commita3e49c560a33ab30146ea0b607f6b193f040958a
treebe21b43925aa8b7193f2bd25193a8c41f76fbdc9
parentb440d4eabaf8cb5619cf7b55d99fc9706832604f
[IfConversion] Only renormalize probabilities if branches are analyzable

If a block has non-analyzable branches, the listed successors don't need
to add up to one. For example, if a block has a conditional tail call,
that tail call will not have a corresponding successor in the successor
list, but will still be a possible branch.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297054 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/IfConversion.cpp
test/CodeGen/Hexagon/ifcvt-simple-bprob.ll [new file with mode: 0644]