OSDN Git Service

AnalyzeBranch doesn't change which successors a bb has, just the order
authorRafael Espindola <rafael.espindola@gmail.com>
Sun, 12 Jun 2011 03:20:32 +0000 (03:20 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sun, 12 Jun 2011 03:20:32 +0000 (03:20 +0000)
commit4509ec42b88e9220f61bca5654411e65368ac53a
tree38889be46efb91bda088637240d07434b12be6bd
parent026dc223aeef2579d63f395007491e37d6cde3a0
AnalyzeBranch doesn't change which successors a bb has, just the order
we try to branch to them.

Before we were creating successor lists with duplicated entries. Fixing that
found a bug in isBlockOnlyReachableByFallthrough that would causes it to
return the wrong answer for

-----------
...
jne foo
jmp bar

foo:
----------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132882 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/Target/X86/X86InstrInfo.cpp
test/CodeGen/Thumb2/machine-licm.ll