[cfe-commits] r144597 - /cfe/trunk/test/CodeGenObjC/exceptions.m

Nick Lewycky nicholas at mxc.ca
Mon Nov 14 16:19:16 PST 2011


Author: nicholas
Date: Mon Nov 14 18:19:16 2011
New Revision: 144597

URL: http://llvm.org/viewvc/llvm-project?rev=144597&view=rev
Log:
The optimizers figured out how to make this store 6.

Modified:
    cfe/trunk/test/CodeGenObjC/exceptions.m

Modified: cfe/trunk/test/CodeGenObjC/exceptions.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/exceptions.m?rev=144597&r1=144596&r2=144597&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/exceptions.m (original)
+++ cfe/trunk/test/CodeGenObjC/exceptions.m Mon Nov 14 18:19:16 2011
@@ -53,11 +53,7 @@
   // CHECK-NEXT:   [[CAUGHT:%.*]] = icmp eq i32 [[SETJMP]], 0
   // CHECK-NEXT:   br i1 [[CAUGHT]]
   @try {
-    // If the optimizers ever figure out how to make this store 6,
-    // that's okay.
-    // CHECK:      [[T1:%.*]] = load i32* [[X]]
-    // CHECK-NEXT: [[T2:%.*]] = add nsw i32 [[T1]], 1
-    // CHECK-NEXT: store i32 [[T2]], i32* [[X]]
+    // CHECK: store i32 6, i32* [[X]]
     x++;
     // CHECK-NEXT: call void asm sideeffect "", "*m,*m"(i32* [[X]]
     // CHECK-NEXT: call void @foo()





More information about the cfe-commits mailing list