[PATCH] D99075: [ARM] Handle debug instrs in ARM Low Overhead Loop pass

Victor Campos via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 22 07:01:30 PDT 2021


vhscampos created this revision.
Herald added subscribers: danielkiss, rogfer01, hiraditya, kristof.beyls.
vhscampos requested review of this revision.
Herald added subscribers: llvm-commits, vkmr.
Herald added a project: LLVM.

In function ConvertVPTBlocks(), it is assumed that every instruction
within a vector-predicated block is predicated. This is false for debug
instructions, used by LLVM.

Because of this, an assertion failure is reached when an input contains
debug instructions inside VPT blocks. In non-assert builds, an out of
bounds memory access took place.

The present patch properly covers the case of debug instructions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D99075

Files:
  llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp
  llvm/test/CodeGen/Thumb2/LowOverheadLoops/skip-vpt-debug.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99075.332275.patch
Type: text/x-patch
Size: 20700 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210322/f6d963b1/attachment.bin>


More information about the llvm-commits mailing list