brintos

brintos / llvm-project-archived public Read only

0
0
Text · 907 B · e15905c Raw
30 lines · plain
1# RUN: llc -mtriple=x86_64-windows-msvc -verify-machineinstrs -run-pass branch-folder -o - %s | FileCheck %s2# RUN: llc -mtriple=x86_64-windows-msvc -verify-machineinstrs -passes="require<profile-summary>,function(machine-function(branch-folder<enable-tail-merge>))" -o - %s | FileCheck %s3 4# Check that branch-folder does not create a fallthrough to a landing pad.5# Also make sure that the landing pad still can be tail merged.6---7name: foo8body: |9  ; CHECK-LABEL: name: foo10  bb.0:11    successors: %bb.1, %bb.312  bb.1:13    JCC_1 %bb.4, 5, implicit killed $eflags14  bb.2:15    MOV8mi $r13, 1, $noreg, 0, $noreg, 016    JMP_1 %bb.517  ; CHECK: bb.2:18  ; CHECK-NOT: successors: {{.*}}bb.319  ; CHECK: bb.3 (landing-pad):20  ; CHECK-NOT: MOV8mi21  bb.3(landing-pad):22    MOV8mi $r13, 1, $noreg, 0, $noreg, 023    JMP_1 %bb.524  ; CHECK: bb.4:25  bb.4:26    MOV8mi $r13, 2, $noreg, 0, $noreg, 027  bb.5:28    RET 029...30