1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -S < %s -passes=gvn | FileCheck %s
4 define void @test(i1 %cmp19, ptr %p) {
7 ; CHECK-NEXT: br i1 [[CMP19:%.*]], label [[WHILE_BODY_LR_PH:%.*]], label [[FOR_COND_PREHEADER:%.*]]
8 ; CHECK: while.body.lr.ph:
9 ; CHECK-NEXT: [[DOTPRE1:%.*]] = load <vscale x 2 x double>, ptr [[P:%.*]], align 16
10 ; CHECK-NEXT: [[TMP0:%.*]] = extractelement <vscale x 2 x double> [[DOTPRE1]], i64 0
11 ; CHECK-NEXT: ret void
12 ; CHECK: for.cond.preheader:
13 ; CHECK-NEXT: [[DOTPRE:%.*]] = load double, ptr [[P]], align 8
14 ; CHECK-NEXT: [[ADD:%.*]] = fadd double [[DOTPRE]], 0.000000e+00
15 ; CHECK-NEXT: ret void
18 br i1 %cmp19, label %while.body.lr.ph, label %for.cond.preheader
20 while.body.lr.ph: ; preds = %entry
21 %.pre1 = load <vscale x 2 x double>, ptr %p, align 16
22 %0 = extractelement <vscale x 2 x double> %.pre1, i64 0
25 for.cond.preheader: ; preds = %entry
26 %.pre = load double, ptr %p, align 8
27 %add = fadd double %.pre, 0.000000e+00