Commit a3543fd
[ARM] Handle debug instrs in ARM Low Overhead Loop pass
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.
Reviewed By: dmgreen
Differential Revision: https://reviews.llvm.org/D990751 parent c7381b6 commit a3543fd
File tree
2 files changed
+343
-7
lines changed- llvm
- lib/Target/ARM
- test/CodeGen/Thumb2/LowOverheadLoops
2 files changed
+343
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1467 | 1467 | | |
1468 | 1468 | | |
1469 | 1469 | | |
| 1470 | + | |
| 1471 | + | |
1470 | 1472 | | |
1471 | | - | |
1472 | | - | |
1473 | | - | |
1474 | | - | |
1475 | | - | |
1476 | | - | |
1477 | | - | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
1478 | 1479 | | |
1479 | 1480 | | |
1480 | 1481 | | |
| |||
1518 | 1519 | | |
1519 | 1520 | | |
1520 | 1521 | | |
| 1522 | + | |
1521 | 1523 | | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
1522 | 1527 | | |
| 1528 | + | |
1523 | 1529 | | |
1524 | 1530 | | |
1525 | 1531 | | |
| |||
0 commit comments