[llvm] [RegAlloc][X86] Rematerialization of instructions with physical register (PR #198853)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri May 29 06:17:54 PDT 2026


================
@@ -0,0 +1,165 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
+; RUN: llc -mtriple=i686-unknown-unknown -mattr=+popcnt -mattr=cmov -frame-pointer=all -allow-rematerialize-phys-reg=true < %s | FileCheck %s
+
+; This file tests rematerialization of instructions with physical register
+; modified.
+
+; Instruction popcnt can be rematerialized.
+define void @test1(i32 %v1, i32 %v2, i32* %ptr) {
+; CHECK-LABEL: test1:
+; CHECK:       # %bb.0:
+; CHECK-NEXT:    pushl %ebp
+; CHECK-NEXT:    .cfi_def_cfa_offset 8
----------------
arsenm wrote:

Add nounwind to avoid CFI noise 

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


More information about the llvm-commits mailing list