Imported Upstream version 6.10.0.49

Former-commit-id: 1d6753294b2993e1fbf92de9366bb9544db4189b
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2020-01-16 16:38:04 +00:00
parent d94e79959b
commit 468663ddbb
48518 changed files with 2789335 additions and 61176 deletions

View File

@@ -0,0 +1,31 @@
; RUN: opt -gvn-hoist -S < %s | FileCheck %s
; CHECK: store
; CHECK-NOT: store
; Check that an instruction can be hoisted to a basic block
; with more than two successors.
@G = external global i32, align 4
define void @foo(i32 %c1) {
entry:
switch i32 %c1, label %exit1 [
i32 0, label %sw0
i32 1, label %sw1
]
sw0:
store i32 1, i32* @G
br label %exit
sw1:
store i32 1, i32* @G
br label %exit
exit1:
store i32 1, i32* @G
ret void
exit:
ret void
}