OSDN Git Service

[IfConversion] Add missing check in IfConversion/canFallThroughTo
authorMikael Holmen <mikael.holmen@ericsson.com>
Wed, 10 May 2017 13:06:13 +0000 (13:06 +0000)
committerMikael Holmen <mikael.holmen@ericsson.com>
Wed, 10 May 2017 13:06:13 +0000 (13:06 +0000)
commitf45bea4a62dbc32b4166497ab311646589e5b8f3
treeae4b25a22813d952d431fab721f50f5099425192
parent344c4f286cbe4b6b03d584a3f8191cec892b34a8
[IfConversion] Add missing check in IfConversion/canFallThroughTo

Summary:
When trying to figure out if MBB could fallthrough to ToMBB (possibly by
falling through a bunch of other MBBs) we didn't actually check if there
was fallthrough between the last two blocks in the chain.

Reviewers: kparzysz, iteratee, MatzeB

Reviewed By: kparzysz, iteratee

Subscribers: javed.absar, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302650 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/IfConversion.cpp
test/CodeGen/MIR/ARM/ifcvt_canFallThroughTo.mir [new file with mode: 0644]