[ARM] Skip debug info in recomputeVPTBlockMask
authorDavid Green <david.green@arm.com>
Tue, 28 Sep 2021 13:58:13 +0000 (14:58 +0100)
committerDavid Green <david.green@arm.com>
Tue, 28 Sep 2021 13:58:13 +0000 (14:58 +0100)
commit2c53215e99cbd7b24768d9f0915aff9fedfcaa4a
treef7d0ef8cefc114a558f9d3c98402dc06808d1fec
parent9324cc2ca951fe5fe11c85470cb08e699c59499c
[ARM] Skip debug info in recomputeVPTBlockMask

The ARMLowOverheadLoops pass recalculates VPT block masks when it
converts VCMP's inside VPT blocks into VPT's. The function to do so
doesn't seem to handle debug info though, leading to invalid block
creation or asserts at compile time. Make sure the function skips any
debug info between the MVE instructions it inspects.

Differential Revision: https://reviews.llvm.org/D110564
llvm/lib/Target/ARM/Thumb2InstrInfo.cpp
llvm/test/CodeGen/Thumb2/LowOverheadLoops/vpt-block-debug.mir [new file with mode: 0644]