Skip to content

Commit 4603834

Browse files
committed
!fixup add more detailed comment for test case.
1 parent 2a7d2de commit 4603834

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/test/Transforms/LoopVectorize/invalidate-scev-at-scope-after-vectorization.ll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
; RUN: opt -passes='print<scalar-evolution>,loop-vectorize' -force-vector-width=4 -scalar-evolution-classify-expressions=false -S %s | FileCheck %s
33

44
; Test case for https://github.com/llvm/llvm-project/issues/119665.
5+
6+
; %loop.2's backedge-taken-count depends on %add.1 from %loop.1 via its
7+
; corresponding SCEV at the scope of %loop.2. After vectorizing %loop.1, %add.1
8+
; isn't available at the entry of %loop.2 anymore and %add.1 at %loop.2's scope
9+
; must be invalidated, as well as %loop.2's backedge-taken count.
510
define void @test_invalidate_scevs_at_scope(ptr %p) {
611
; CHECK-LABEL: define void @test_invalidate_scevs_at_scope(
712
; CHECK-SAME: ptr [[P:%.*]]) {

0 commit comments

Comments
 (0)