]> granicus.if.org Git - clang/commitdiff
Revert "Re-commit r357452: SimplifyCFG SinkCommonCodeFromPredecessors: Also sink...
authorJordan Rupprecht <rupprecht@google.com>
Mon, 6 May 2019 21:55:05 +0000 (21:55 +0000)
committerJordan Rupprecht <rupprecht@google.com>
Mon, 6 May 2019 21:55:05 +0000 (21:55 +0000)
This reverts r357452 (git commit 21eb771dcb5c11d7500fa6ad551c97a921997f05).

This was causing strange optimization-related test failures on an internal test. Will followup with more details offline.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360086 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/nrvo.cpp
test/CodeGenCXX/stack-reuse-exceptions.cpp
test/CodeGenObjC/exceptions.m

index 221857402988abc93190648bd98d8aa15717e837..0f359b9c900070514d94c71df6a60e441b6e72ca 100644 (file)
@@ -60,6 +60,7 @@ X test2(bool B) {
   // CHECK-NEXT: call void @llvm.lifetime.start
   // CHECK-NEXT: call {{.*}} @_ZN1XC1Ev
   // CHECK: call {{.*}} @_ZN1XC1ERKS_
+  // CHECK: call {{.*}} @_ZN1XC1ERKS_
   // CHECK: call {{.*}} @_ZN1XD1Ev
   // CHECK-NEXT: call void @llvm.lifetime.end
   // CHECK: call {{.*}} @_ZN1XD1Ev
index 2d968db3fdbd7715713c8b07dc80c627a3775bd5..de870c5305048fdaa89c6690bc1956bc491b216f 100644 (file)
@@ -1,5 +1,5 @@
 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu %s -o - -emit-llvm -O1 \
-// RUN:     -fexceptions -fcxx-exceptions -mllvm -simplifycfg-sink-common=false | FileCheck %s
+// RUN:     -fexceptions -fcxx-exceptions | FileCheck %s
 //
 // We should emit lifetime.ends for these temporaries in both the 'exception'
 // and 'normal' paths in functions.
index 741f8a819158609f42592a337d7e24c72a69c546..439b9401485f01a4f388ee9a793585b1f78985cc 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -fobjc-exceptions -mllvm -simplifycfg-sink-common=false -O2 -o - %s | FileCheck %s
+// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -fobjc-exceptions -O2 -o - %s | FileCheck %s
 //
 // <rdar://problem/7471679> [irgen] [eh] Exception code built with clang (x86_64) crashes