[llvm] X86: Remove stale EFLAGS live range when converting ADD to LEA (PR #222029)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 9 04:26:04 PDT 2026


https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/222029

>From aaf7461b4208bb670b0de24794f136061bfc4f49 Mon Sep 17 00:00:00 2001
From: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: Tue, 8 Sep 2026 17:11:51 +0200
Subject: [PATCH 1/3] X86: Remove stale EFLAGS live range when converting ADD
 to LEA

convertToThreeAddress may rewrite an EFLAGS-clobbering ADD into an LEA, which
does not define EFLAGS. hasLiveCondCodeDef guarantees the EFLAGS def was dead, so
drop its LiveIntervals value, otherwise the verifier would fail.

Fixes verifier errors with -early-live-intervals.

Co-authored-by: Claude (Claude-Opus-4.8)
---
 llvm/lib/Target/X86/X86InstrInfo.cpp          | 15 ++++++
 .../X86/twoaddr-lea-eflags-liveintervals.ll   | 51 +++++++++++++++++++
 2 files changed, 66 insertions(+)
 create mode 100644 llvm/test/CodeGen/X86/twoaddr-lea-eflags-liveintervals.ll

diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp
index 11a37efd28948..6471be97b62e9 100644
--- a/llvm/lib/Target/X86/X86InstrInfo.cpp
+++ b/llvm/lib/Target/X86/X86InstrInfo.cpp
@@ -1360,8 +1360,15 @@ MachineInstr *X86InstrInfo::convertToThreeAddressWithLEA(unsigned MIOpc,
     SlotIndex Ins2Idx;
     if (InsMI2)
       Ins2Idx = LIS->InsertMachineInstrInMaps(*InsMI2);
+    bool DefinedEFLAGS = MI.definesRegister(X86::EFLAGS, /*TRI=*/nullptr) &&
+                         !NewMI->definesRegister(X86::EFLAGS, /*TRI=*/nullptr);
     SlotIndex NewIdx = LIS->ReplaceMachineInstrInMaps(MI, *NewMI);
     SlotIndex ExtIdx = LIS->InsertMachineInstrInMaps(*ExtMI);
+
+    // Drop the dead EFLAGS def MI had; the replacement does not define EFLAGS.
+    if (DefinedEFLAGS)
+      LIS->removePhysRegDefAt(X86::EFLAGS, NewIdx.getRegSlot());
+
     LIS->getInterval(InRegLEA);
     LIS->getInterval(OutRegLEA);
     if (InRegLEA2)
@@ -2042,7 +2049,15 @@ MachineInstr *X86InstrInfo::convertToThreeAddress(MachineInstr &MI,
   MBB.insert(MI.getIterator(), NewMI); // Insert the new inst
 
   if (LIS) {
+    // The replacement does not define EFLAGS; drop the dead EFLAGS def MI had.
+    SlotIndex Idx = LIS->getInstructionIndex(MI);
+    bool DefinedEFLAGS = MI.definesRegister(X86::EFLAGS, /*TRI=*/nullptr) &&
+                         !NewMI->definesRegister(X86::EFLAGS, /*TRI=*/nullptr);
+
     LIS->ReplaceMachineInstrInMaps(MI, *NewMI);
+
+    if (DefinedEFLAGS)
+      LIS->removePhysRegDefAt(X86::EFLAGS, Idx.getRegSlot());
     if (SrcReg)
       LIS->getInterval(SrcReg);
     if (SrcReg2)
diff --git a/llvm/test/CodeGen/X86/twoaddr-lea-eflags-liveintervals.ll b/llvm/test/CodeGen/X86/twoaddr-lea-eflags-liveintervals.ll
new file mode 100644
index 0000000000000..0f7860fe2ddf1
--- /dev/null
+++ b/llvm/test/CodeGen/X86/twoaddr-lea-eflags-liveintervals.ll
@@ -0,0 +1,51 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
+; RUN: llc -mtriple=i686-- -verify-machineinstrs -precompute-phys-liveness \
+; RUN:     -early-live-intervals < %s | FileCheck --check-prefix=X86 %s
+; RUN: llc -mtriple=x86_64-- -verify-machineinstrs -precompute-phys-liveness \
+; RUN:     -early-live-intervals < %s | FileCheck --check-prefix=X64 %s
+
+; Converting an EFLAGS-clobbering ADD into an LEA must drop the dead EFLAGS
+; reg-unit value in LiveIntervals; the verifier rejects it otherwise.
+
+define void @eflags_lea(i32 %arg) {
+; X86-LABEL: eflags_lea:
+; X86:       # %bb.0: # %entry
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %eax
+; X86-NEXT:    leal -5(%eax), %ecx
+; X86-NEXT:    cmpl $2, %ecx
+; X86-NEXT:    jb .LBB0_3
+; X86-NEXT:  # %bb.1: # %entry
+; X86-NEXT:    cmpl $4, %eax
+; X86-NEXT:    je .LBB0_2
+; X86-NEXT:  .LBB0_3: # %default
+; X86-NEXT:    retl
+; X86-NEXT:  .LBB0_2: # %unreach
+;
+; X64-LABEL: eflags_lea:
+; X64:       # %bb.0: # %entry
+; X64-NEXT:    # kill: def $edi killed $edi def $rdi
+; X64-NEXT:    leal -5(%rdi), %eax
+; X64-NEXT:    cmpl $2, %eax
+; X64-NEXT:    jb .LBB0_3
+; X64-NEXT:  # %bb.1: # %entry
+; X64-NEXT:    cmpl $4, %edi
+; X64-NEXT:    je .LBB0_2
+; X64-NEXT:  .LBB0_3: # %default
+; X64-NEXT:    retq
+; X64-NEXT:  .LBB0_2: # %unreach
+entry:
+  switch i32 %arg, label %default [
+    i32 4, label %unreach
+    i32 6, label %exit
+    i32 5, label %exit
+  ]
+
+unreach:
+  unreachable
+
+exit:
+  ret void
+
+default:
+  ret void
+}

>From 582f097be1376e6bfe75f0572c60fda6c9d42d75 Mon Sep 17 00:00:00 2001
From: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: Wed, 9 Sep 2026 08:34:20 +0200
Subject: [PATCH 2/3] review feedback

---
 llvm/lib/Target/X86/X86InstrInfo.cpp                  | 11 ++---------
 .../CodeGen/X86/twoaddr-lea-eflags-liveintervals.ll   |  3 +++
 2 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp
index 6471be97b62e9..ca864d02b3399 100644
--- a/llvm/lib/Target/X86/X86InstrInfo.cpp
+++ b/llvm/lib/Target/X86/X86InstrInfo.cpp
@@ -1360,14 +1360,11 @@ MachineInstr *X86InstrInfo::convertToThreeAddressWithLEA(unsigned MIOpc,
     SlotIndex Ins2Idx;
     if (InsMI2)
       Ins2Idx = LIS->InsertMachineInstrInMaps(*InsMI2);
-    bool DefinedEFLAGS = MI.definesRegister(X86::EFLAGS, /*TRI=*/nullptr) &&
-                         !NewMI->definesRegister(X86::EFLAGS, /*TRI=*/nullptr);
     SlotIndex NewIdx = LIS->ReplaceMachineInstrInMaps(MI, *NewMI);
     SlotIndex ExtIdx = LIS->InsertMachineInstrInMaps(*ExtMI);
 
     // Drop the dead EFLAGS def MI had; the replacement does not define EFLAGS.
-    if (DefinedEFLAGS)
-      LIS->removePhysRegDefAt(X86::EFLAGS, NewIdx.getRegSlot());
+    LIS->removePhysRegDefAt(X86::EFLAGS, NewIdx.getRegSlot());
 
     LIS->getInterval(InRegLEA);
     LIS->getInterval(OutRegLEA);
@@ -2051,13 +2048,9 @@ MachineInstr *X86InstrInfo::convertToThreeAddress(MachineInstr &MI,
   if (LIS) {
     // The replacement does not define EFLAGS; drop the dead EFLAGS def MI had.
     SlotIndex Idx = LIS->getInstructionIndex(MI);
-    bool DefinedEFLAGS = MI.definesRegister(X86::EFLAGS, /*TRI=*/nullptr) &&
-                         !NewMI->definesRegister(X86::EFLAGS, /*TRI=*/nullptr);
-
     LIS->ReplaceMachineInstrInMaps(MI, *NewMI);
 
-    if (DefinedEFLAGS)
-      LIS->removePhysRegDefAt(X86::EFLAGS, Idx.getRegSlot());
+    LIS->removePhysRegDefAt(X86::EFLAGS, Idx.getRegSlot());
     if (SrcReg)
       LIS->getInterval(SrcReg);
     if (SrcReg2)
diff --git a/llvm/test/CodeGen/X86/twoaddr-lea-eflags-liveintervals.ll b/llvm/test/CodeGen/X86/twoaddr-lea-eflags-liveintervals.ll
index 0f7860fe2ddf1..296110099cb8e 100644
--- a/llvm/test/CodeGen/X86/twoaddr-lea-eflags-liveintervals.ll
+++ b/llvm/test/CodeGen/X86/twoaddr-lea-eflags-liveintervals.ll
@@ -1,3 +1,6 @@
+; REQUIRES: asserts
+; -precompute-phys-liveness is only available in asserts builds
+
 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
 ; RUN: llc -mtriple=i686-- -verify-machineinstrs -precompute-phys-liveness \
 ; RUN:     -early-live-intervals < %s | FileCheck --check-prefix=X86 %s

>From c6197dd7f0564f5cc4a5da3bcc43cac1195a1eb2 Mon Sep 17 00:00:00 2001
From: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: Wed, 9 Sep 2026 13:01:28 +0200
Subject: [PATCH 3/3] more-tests

---
 .../X86/twoaddr-lea-eflags-liveintervals.ll   | 265 ++++++++++++++++--
 1 file changed, 234 insertions(+), 31 deletions(-)

diff --git a/llvm/test/CodeGen/X86/twoaddr-lea-eflags-liveintervals.ll b/llvm/test/CodeGen/X86/twoaddr-lea-eflags-liveintervals.ll
index 296110099cb8e..73db45a92ce09 100644
--- a/llvm/test/CodeGen/X86/twoaddr-lea-eflags-liveintervals.ll
+++ b/llvm/test/CodeGen/X86/twoaddr-lea-eflags-liveintervals.ll
@@ -1,54 +1,257 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
 ; REQUIRES: asserts
 ; -precompute-phys-liveness is only available in asserts builds
 
-; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
 ; RUN: llc -mtriple=i686-- -verify-machineinstrs -precompute-phys-liveness \
 ; RUN:     -early-live-intervals < %s | FileCheck --check-prefix=X86 %s
 ; RUN: llc -mtriple=x86_64-- -verify-machineinstrs -precompute-phys-liveness \
 ; RUN:     -early-live-intervals < %s | FileCheck --check-prefix=X64 %s
 
-; Converting an EFLAGS-clobbering ADD into an LEA must drop the dead EFLAGS
-; reg-unit value in LiveIntervals; the verifier rejects it otherwise.
+; When TwoAddressInstructionPass converts an EFLAGS-clobbering
+; arithmetic instruction into an LEA, the dead EFLAGS must be dropped
+; from LiveIntervals. Cover the various opcodes and widths that reach
+; convertToThreeAddress and convertToThreeAddressWithLEA with a dead
+; EFLAGS def.
+
+; Register-register add (ADD32rr), all operands live across the def.
+define void @add_rr(i32 %a, i32 %b, ptr %p, ptr %q, ptr %r) nounwind {
+; X86-LABEL: add_rr:
+; X86:       # %bb.0: # %entry
+; X86-NEXT:    pushl %ebx
+; X86-NEXT:    pushl %edi
+; X86-NEXT:    pushl %esi
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %eax
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %edx
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %esi
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %edi
+; X86-NEXT:    leal (%edi,%esi), %ebx
+; X86-NEXT:    movl %ebx, (%edx)
+; X86-NEXT:    movl %edi, (%ecx)
+; X86-NEXT:    movl %esi, (%eax)
+; X86-NEXT:    popl %esi
+; X86-NEXT:    popl %edi
+; X86-NEXT:    popl %ebx
+; X86-NEXT:    retl
+;
+; X64-LABEL: add_rr:
+; X64:       # %bb.0: # %entry
+; X64-NEXT:    # kill: def $esi killed $esi def $rsi
+; X64-NEXT:    # kill: def $edi killed $edi def $rdi
+; X64-NEXT:    leal (%rdi,%rsi), %eax
+; X64-NEXT:    movl %eax, (%rdx)
+; X64-NEXT:    movl %edi, (%rcx)
+; X64-NEXT:    movl %esi, (%r8)
+; X64-NEXT:    retq
+entry:
+  %s = add i32 %a, %b
+  store volatile i32 %s, ptr %p
+  store volatile i32 %a, ptr %q
+  store volatile i32 %b, ptr %r
+  ret void
+}
+
+; Register-immediate add (ADD32ri).
+define void @add_ri(i32 %a, ptr %p, ptr %q) nounwind {
+; X86-LABEL: add_ri:
+; X86:       # %bb.0: # %entry
+; X86-NEXT:    pushl %esi
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %eax
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %edx
+; X86-NEXT:    leal 7(%edx), %esi
+; X86-NEXT:    movl %esi, (%ecx)
+; X86-NEXT:    movl %edx, (%eax)
+; X86-NEXT:    popl %esi
+; X86-NEXT:    retl
+;
+; X64-LABEL: add_ri:
+; X64:       # %bb.0: # %entry
+; X64-NEXT:    # kill: def $edi killed $edi def $rdi
+; X64-NEXT:    leal 7(%rdi), %eax
+; X64-NEXT:    movl %eax, (%rsi)
+; X64-NEXT:    movl %edi, (%rdx)
+; X64-NEXT:    retq
+entry:
+  %s = add i32 %a, 7
+  store volatile i32 %s, ptr %p
+  store volatile i32 %a, ptr %q
+  ret void
+}
+
+; Register-immediate sub (SUB32ri), lowered as add of the negated immediate.
+define void @sub_ri(i32 %a, ptr %p, ptr %q) nounwind {
+; X86-LABEL: sub_ri:
+; X86:       # %bb.0: # %entry
+; X86-NEXT:    pushl %esi
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %eax
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %edx
+; X86-NEXT:    leal -7(%edx), %esi
+; X86-NEXT:    movl %esi, (%ecx)
+; X86-NEXT:    movl %edx, (%eax)
+; X86-NEXT:    popl %esi
+; X86-NEXT:    retl
+;
+; X64-LABEL: sub_ri:
+; X64:       # %bb.0: # %entry
+; X64-NEXT:    # kill: def $edi killed $edi def $rdi
+; X64-NEXT:    leal -7(%rdi), %eax
+; X64-NEXT:    movl %eax, (%rsi)
+; X64-NEXT:    movl %edi, (%rdx)
+; X64-NEXT:    retq
+entry:
+  %s = sub i32 %a, 7
+  store volatile i32 %s, ptr %p
+  store volatile i32 %a, ptr %q
+  ret void
+}
+
+; Increment (INC32r).
+define void @inc(i32 %a, ptr %p, ptr %q) nounwind {
+; X86-LABEL: inc:
+; X86:       # %bb.0: # %entry
+; X86-NEXT:    pushl %esi
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %eax
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %edx
+; X86-NEXT:    leal 1(%edx), %esi
+; X86-NEXT:    movl %esi, (%ecx)
+; X86-NEXT:    movl %edx, (%eax)
+; X86-NEXT:    popl %esi
+; X86-NEXT:    retl
+;
+; X64-LABEL: inc:
+; X64:       # %bb.0: # %entry
+; X64-NEXT:    # kill: def $edi killed $edi def $rdi
+; X64-NEXT:    leal 1(%rdi), %eax
+; X64-NEXT:    movl %eax, (%rsi)
+; X64-NEXT:    movl %edi, (%rdx)
+; X64-NEXT:    retq
+entry:
+  %s = add i32 %a, 1
+  store volatile i32 %s, ptr %p
+  store volatile i32 %a, ptr %q
+  ret void
+}
 
-define void @eflags_lea(i32 %arg) {
-; X86-LABEL: eflags_lea:
+; Decrement (DEC32r).
+define void @dec(i32 %a, ptr %p, ptr %q) nounwind {
+; X86-LABEL: dec:
 ; X86:       # %bb.0: # %entry
+; X86-NEXT:    pushl %esi
 ; X86-NEXT:    movl {{[0-9]+}}(%esp), %eax
-; X86-NEXT:    leal -5(%eax), %ecx
-; X86-NEXT:    cmpl $2, %ecx
-; X86-NEXT:    jb .LBB0_3
-; X86-NEXT:  # %bb.1: # %entry
-; X86-NEXT:    cmpl $4, %eax
-; X86-NEXT:    je .LBB0_2
-; X86-NEXT:  .LBB0_3: # %default
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %edx
+; X86-NEXT:    leal -1(%edx), %esi
+; X86-NEXT:    movl %esi, (%ecx)
+; X86-NEXT:    movl %edx, (%eax)
+; X86-NEXT:    popl %esi
 ; X86-NEXT:    retl
-; X86-NEXT:  .LBB0_2: # %unreach
 ;
-; X64-LABEL: eflags_lea:
+; X64-LABEL: dec:
 ; X64:       # %bb.0: # %entry
 ; X64-NEXT:    # kill: def $edi killed $edi def $rdi
-; X64-NEXT:    leal -5(%rdi), %eax
-; X64-NEXT:    cmpl $2, %eax
-; X64-NEXT:    jb .LBB0_3
-; X64-NEXT:  # %bb.1: # %entry
-; X64-NEXT:    cmpl $4, %edi
-; X64-NEXT:    je .LBB0_2
-; X64-NEXT:  .LBB0_3: # %default
+; X64-NEXT:    leal -1(%rdi), %eax
+; X64-NEXT:    movl %eax, (%rsi)
+; X64-NEXT:    movl %edi, (%rdx)
 ; X64-NEXT:    retq
-; X64-NEXT:  .LBB0_2: # %unreach
 entry:
-  switch i32 %arg, label %default [
-    i32 4, label %unreach
-    i32 6, label %exit
-    i32 5, label %exit
-  ]
+  %s = sub i32 %a, 1
+  store volatile i32 %s, ptr %p
+  store volatile i32 %a, ptr %q
+  ret void
+}
 
-unreach:
-  unreachable
+; Shift by constant (SHL32ri).
+define void @shl(i32 %a, ptr %p, ptr %q) nounwind {
+; X86-LABEL: shl:
+; X86:       # %bb.0: # %entry
+; X86-NEXT:    pushl %esi
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %eax
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %edx
+; X86-NEXT:    leal (,%edx,8), %esi
+; X86-NEXT:    movl %esi, (%ecx)
+; X86-NEXT:    movl %edx, (%eax)
+; X86-NEXT:    popl %esi
+; X86-NEXT:    retl
+;
+; X64-LABEL: shl:
+; X64:       # %bb.0: # %entry
+; X64-NEXT:    # kill: def $edi killed $edi def $rdi
+; X64-NEXT:    leal (,%rdi,8), %eax
+; X64-NEXT:    movl %eax, (%rsi)
+; X64-NEXT:    movl %edi, (%rdx)
+; X64-NEXT:    retq
+entry:
+  %s = shl i32 %a, 3
+  store volatile i32 %s, ptr %p
+  store volatile i32 %a, ptr %q
+  ret void
+}
 
-exit:
+; 64-bit register-immediate add (ADD64ri32); only converts on 64-bit targets.
+define void @add64_ri(i64 %a, ptr %p, ptr %q) nounwind {
+; X86-LABEL: add64_ri:
+; X86:       # %bb.0: # %entry
+; X86-NEXT:    pushl %ebx
+; X86-NEXT:    pushl %edi
+; X86-NEXT:    pushl %esi
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %eax
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %edx
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %esi
+; X86-NEXT:    movl %edx, %edi
+; X86-NEXT:    addl $7, %edi
+; X86-NEXT:    movl %esi, %ebx
+; X86-NEXT:    adcl $0, %ebx
+; X86-NEXT:    movl %edi, (%ecx)
+; X86-NEXT:    movl %ebx, 4(%ecx)
+; X86-NEXT:    movl %esi, 4(%eax)
+; X86-NEXT:    movl %edx, (%eax)
+; X86-NEXT:    popl %esi
+; X86-NEXT:    popl %edi
+; X86-NEXT:    popl %ebx
+; X86-NEXT:    retl
+;
+; X64-LABEL: add64_ri:
+; X64:       # %bb.0: # %entry
+; X64-NEXT:    leaq 7(%rdi), %rax
+; X64-NEXT:    movq %rax, (%rsi)
+; X64-NEXT:    movq %rdi, (%rdx)
+; X64-NEXT:    retq
+entry:
+  %s = add i64 %a, 7
+  store volatile i64 %s, ptr %p
+  store volatile i64 %a, ptr %q
   ret void
+}
 
-default:
+; 8-bit register-immediate add (ADD8ri) goes through
+; convertToThreeAddressWithLEA; only converts on 64-bit targets.
+define void @add8_ri(i8 %a, ptr %p, ptr %q) nounwind {
+; X86-LABEL: add8_ri:
+; X86:       # %bb.0: # %entry
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %eax
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT:    movzbl {{[0-9]+}}(%esp), %edx
+; X86-NEXT:    movb %dl, %dh
+; X86-NEXT:    addb $7, %dh
+; X86-NEXT:    movb %dh, (%ecx)
+; X86-NEXT:    movb %dl, (%eax)
+; X86-NEXT:    retl
+;
+; X64-LABEL: add8_ri:
+; X64:       # %bb.0: # %entry
+; X64-NEXT:    # kill: def $edi killed $edi def $rdi
+; X64-NEXT:    leal 7(%rdi), %eax
+; X64-NEXT:    movb %al, (%rsi)
+; X64-NEXT:    movb %dil, (%rdx)
+; X64-NEXT:    retq
+entry:
+  %s = add i8 %a, 7
+  store volatile i8 %s, ptr %p
+  store volatile i8 %a, ptr %q
   ret void
 }



More information about the llvm-commits mailing list