[llvm] [PowerPC] Do not rely on MachineSink threshold to optimize CR spilling (PR #128745)

Min-Yih Hsu via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 26 11:03:28 PST 2025


================
@@ -0,0 +1,27 @@
+# RUN: llc -run-pass=machine-sink -mtriple=powerpc64-unknown-linux-gnu -o - %s | FileCheck %s
+
+---
+name:            sink-crset-crunset
+body:             |
+  ; CHECK-LABEL: bb.0.entry
+  bb.0.entry:
+    successors: %bb.1(0x40000000), %bb.2(0x40000000)
+    liveins: $r3
+    ; CHECK-NOT: CRSET
----------------
mshockwave wrote:

> I don't think that one can use these instructions in LLVM IR

Ah that's a good point. Nvm then.

https://github.com/llvm/llvm-project/pull/128745


More information about the llvm-commits mailing list