Imported Upstream version 5.18.0.246

Former-commit-id: 0c7ce5b1a7851e13f22acfd379b7f9fb304e4833
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-01-23 08:21:40 +00:00
parent a7724cd563
commit 279aa8f685
28482 changed files with 3866972 additions and 44 deletions

View File

@ -0,0 +1,33 @@
; This is really testing that instcombine preserves analyses correctly, so we
; don't care much about the code other than it is something instcombine can
; transform.
;
; RUN: opt < %s -disable-output -debug-pass-manager 2>&1 -aa-pipeline=basic-aa,globals-aa \
; RUN: -passes='require<globals-aa>,function(require<aa>,instcombine),function(require<aa>)' \
; RUN: | FileCheck %s --check-prefix=AA
; AA: Running analysis: GlobalsAA
; AA: Running analysis: AAManager
; AA: Running analysis: BasicAA
; AA: Running pass: InstCombinePass on test
; AA-NOT: Invalidating analysis: GlobalsAA
; AA-NOT: Invalidating analysis: AAmanager
; AA-NOT: Invalidating analysis: BasicAA
; AA: Running pass: RequireAnalysisPass<{{.*}}AAManager
; AA-NOT: Running analysis: GlobalsAA
; AA-NOT: Running analysis: AAmanager
; AA-NOT: Running analysis: BasicAA
;
; RUN: opt < %s -disable-output -debug-pass-manager 2>&1 \
; RUN: -passes='require<domtree>,instcombine,require<domtree>' \
; RUN: | FileCheck %s --check-prefix=DT
; DT: Running analysis: DominatorTreeAnalysis
; DT: Running pass: InstCombinePass on test
; DT-NOT: Invalidating analysis: DominatorTreeAnalysis
; DT: Running pass: RequireAnalysisPass<{{.*}}DominatorTreeAnalysis
; DT-NOT: Running analysis: DominatorTreeAnalysis
define i32 @test(i32 %A) {
%B = add i32 %A, 5
%C = add i32 %B, -5
ret i32 %C
}