[llvm] r199116 - [SystemZ] Add "volatile" to a dead store in variable-loc.ll

Richard Sandiford rsandifo at linux.vnet.ibm.com
Mon Jan 13 07:42:16 PST 2014


Author: rsandifo
Date: Mon Jan 13 09:42:16 2014
New Revision: 199116

URL: http://llvm.org/viewvc/llvm-project?rev=199116&view=rev
Log:
[SystemZ] Add "volatile" to a dead store in variable-loc.ll

Modified:
    llvm/trunk/test/DebugInfo/SystemZ/variable-loc.ll

Modified: llvm/trunk/test/DebugInfo/SystemZ/variable-loc.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/SystemZ/variable-loc.ll?rev=199116&r1=199115&r2=199116&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/SystemZ/variable-loc.ll (original)
+++ llvm/trunk/test/DebugInfo/SystemZ/variable-loc.ll Mon Jan 13 09:42:16 2014
@@ -2,7 +2,7 @@
 ;
 ; This is a regression test making sure the location of variables is correct in
 ; debugging information, even if they're addressed via the frame pointer.
-; A copy of the AArch64 test, commandeered for SystemZ.
+; Originally a copy of the AArch64 test, commandeered for SystemZ.
 ;
 ; First make sure main_arr is where we expect it: %r11 + 164
 ;
@@ -39,7 +39,7 @@ entry:
   %retval = alloca i32, align 4
   %main_arr = alloca [100 x i32], align 4
   %val = alloca i32, align 4
-  store i32 0, i32* %retval
+  store volatile i32 0, i32* %retval
   call void @llvm.dbg.declare(metadata !{[100 x i32]* %main_arr}, metadata !17), !dbg !22
   call void @llvm.dbg.declare(metadata !{i32* %val}, metadata !23), !dbg !24
   %arraydecay = getelementptr inbounds [100 x i32]* %main_arr, i32 0, i32 0, !dbg !25





More information about the llvm-commits mailing list