[llvm] [RA] Disable split around hint register if optimize for size (PR #68619)

via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 9 13:45:03 PDT 2023


================
@@ -0,0 +1,92 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
+; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
+
+; @foo is optimized for size. Variables %p2, %p3, %p4, %p5 and %p6 are not split
+; in cold blocks.
+
+define i64 @foo(ptr %ptr, i64 %p2, i64 %p3, i64 %p4, i64 %p5, i64 %p6) #0 {
----------------
zmodem wrote:

(I find just putting `optsize` directly instead of `#0` is easier to read.)

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


More information about the llvm-commits mailing list