[llvm] [MachineOutliner] Don't outline ADRP pair to avoid incorrect ICF (PR #160232)
Pranav Kant via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 3 20:17:44 PST 2025
================
@@ -0,0 +1,133 @@
+# RUN: llc -mtriple=aarch64--- -run-pass=machine-outliner -verify-machineinstrs %s -o - | FileCheck %s
----------------
pranavk wrote:
In `ADRP -> ADD -> LDR` sequence, only first two are the problematic ones and must be kept together. LDR can be outlined safely. So test for this whole sequence wouldn't test anything more than what `adrp_add` already tests in this?
Or maybe I am missing something. Can you elaborate more?
https://github.com/llvm/llvm-project/pull/160232
More information about the llvm-commits
mailing list