[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)
commit21c867c26e11d414a65a7158502945bac307e033
tree47f6173914fe194f0d981d0cb64a208412d46b95
parent11d251c05cc498194945cac07ab5d17770e298bf
[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

llvm-svn: 302650
llvm/lib/CodeGen/IfConversion.cpp
llvm/test/CodeGen/MIR/ARM/ifcvt_canFallThroughTo.mir [new file with mode: 0644]