From: Nick Lewycky Date: Tue, 15 Nov 2011 00:19:16 +0000 (+0000) Subject: The optimizers figured out how to make this store 6. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=155fa39bb5f2ecffd1a07dd558806cda2e514147;p=clang The optimizers figured out how to make this store 6. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144597 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenObjC/exceptions.m b/test/CodeGenObjC/exceptions.m index 2472869ff5..24fb6575e4 100644 --- a/test/CodeGenObjC/exceptions.m +++ b/test/CodeGenObjC/exceptions.m @@ -53,11 +53,7 @@ int f2() { // 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()