[llvm] [MachineOutliner] Avoid ranges that cross bundle boundary (PR #148977)
Ellis Hoag via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 16 08:58:46 PDT 2025
================
@@ -40,3 +40,52 @@ body: |
$x9 = ADDXri $x9, 16, 0
$x16 = ADDXri killed $x16, 16, 0
RET undef $x9
+...
+---
+name: unsafe_range_bundle
+tracksRegLiveness: true
+machineFunctionInfo:
+ hasRedZone: false
+body: |
+ bb.0:
+ liveins: $x0
+ ; Begin safe range of 3 instructions
----------------
ellishg wrote:
These comments were copied from the test `unsafe_range_in_middle` above, and I didn't check if they were correct or not. I simply found some tests that had separate ranges and inserted a bundle that triggered the crash.
https://github.com/llvm/llvm-project/pull/148977
More information about the llvm-commits
mailing list