llvm.org GIT mirror llvm / 17eef45
[SLP] add test for over-vectorization (PR33958); NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371426 91177308-0d34-0410-b5e6-96231b3b80d8 Sanjay Patel a month ago
1 changed file(s) with 16 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
548548 br i1 %cmp, label %for.body, label %for.cond.cleanup
549549 }
550550
551 @g1 = external global i32, align 4
552 @g2 = external global i32, align 4
553
554 define void @PR33958(i32** nocapture %p) {
555 ; CHECK-LABEL: @PR33958(
556 ; CHECK-NEXT: [[ARRAYIDX1:%.*]] = getelementptr inbounds i32*, i32** [[P:%.*]], i64 1
557 ; CHECK-NEXT: [[TMP1:%.*]] = bitcast i32** [[P]] to <2 x i32*>*
558 ; CHECK-NEXT: store <2 x i32*> , <2 x i32*>* [[TMP1]], align 8
559 ; CHECK-NEXT: ret void
560 ;
561 store i32* @g1, i32** %p, align 8
562 %arrayidx1 = getelementptr inbounds i32*, i32** %p, i64 1
563 store i32* @g2, i32** %arrayidx1, align 8
564 ret void
565 }
566
551567 attributes #0 = { nounwind ssp uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
552568
553569 !llvm.ident = !{!0}