diff options
author | David Green <david.green@arm.com> | 2024-04-29 15:47:24 +0100 |
---|---|---|
committer | David Green <david.green@arm.com> | 2024-04-29 15:47:24 +0100 |
commit | d486a4c29a331d3bfb3649a8a0aa2ba4970a6455 (patch) | |
tree | ae7ae7d7661f0a565110efc44c38d46551d7adb8 | |
parent | 3044eaf40932c23d668483c6557fa3877f979e62 (diff) | |
download | llvm-d486a4c29a331d3bfb3649a8a0aa2ba4970a6455.zip llvm-d486a4c29a331d3bfb3649a8a0aa2ba4970a6455.tar.gz llvm-d486a4c29a331d3bfb3649a8a0aa2ba4970a6455.tar.bz2 |
[ARM] Ensure extra uses are not dead in tail-folding-counting-down.ll. NFC
This might help keep the test valid if vplan is removing dead intructions.
-rw-r--r-- | llvm/test/Transforms/LoopVectorize/ARM/tail-folding-counting-down.ll | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/Transforms/LoopVectorize/ARM/tail-folding-counting-down.ll b/llvm/test/Transforms/LoopVectorize/ARM/tail-folding-counting-down.ll index 5c1966f..0f52456 100644 --- a/llvm/test/Transforms/LoopVectorize/ARM/tail-folding-counting-down.ll +++ b/llvm/test/Transforms/LoopVectorize/ARM/tail-folding-counting-down.ll @@ -107,9 +107,10 @@ while.body: %1 = load i8, ptr %b.addr.07, align 1 %add = add i8 %1, %0 %incdec.ptr4 = getelementptr inbounds i8, ptr %c.addr.08, i32 1 - store i8 %add, ptr %c.addr.08, align 1 %cmp = icmp sgt i32 %N.addr.09, 1 %select = select i1 %cmp, i8 %0, i8 %1 + %add2 = add i8 %add, %select + store i8 %add2, ptr %c.addr.08, align 1 br i1 %cmp, label %while.body, label %while.end.loopexit while.end.loopexit: |