diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-11-15 00:19:16 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-11-15 00:19:16 +0000 |
commit | 155fa39bb5f2ecffd1a07dd558806cda2e514147 (patch) | |
tree | e91a63e09ee3f6366f27325653c48864f7a97c33 | |
parent | 2407712d90cb1cce3bb2713d342c4df8222a2a47 (diff) |
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
-rw-r--r-- | test/CodeGenObjC/exceptions.m | 6 |
1 files changed, 1 insertions, 5 deletions
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() |