[ARM] Fixup the creation of VPT blocks
authorDavid Green <david.green@arm.com>
Thu, 5 Sep 2019 13:37:04 +0000 (13:37 +0000)
committerDavid Green <david.green@arm.com>
Thu, 5 Sep 2019 13:37:04 +0000 (13:37 +0000)
commit83a33412465aa183036cacf80617f03f64fc247a
tree6b74aba28f7ac0a94ad3cd5d89987ecae325a563
parent33671ceffa63e566308bf8777802833ca87719af
[ARM] Fixup the creation of VPT blocks

This attempts to just fix the creation of VPT blocks, fixing up the iterating,
which instructions are considered in the bundle, and making sure that we do not
overrun the end of the block.

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

llvm-svn: 371064
llvm/lib/Target/ARM/MVEVPTBlockPass.cpp
llvm/test/CodeGen/Thumb2/mve-vpt-block.mir
llvm/test/CodeGen/Thumb2/mve-vpt-block2.mir
llvm/test/CodeGen/Thumb2/mve-vpt-block4.mir
llvm/test/CodeGen/Thumb2/mve-vpt-block5.mir
llvm/test/CodeGen/Thumb2/mve-vpt-block6.mir
llvm/test/CodeGen/Thumb2/mve-vpt-block7.mir
llvm/test/CodeGen/Thumb2/mve-vpt-block8.mir
llvm/test/CodeGen/Thumb2/mve-vpt-nots.mir