[llvm] 4954f0d - [InstCombine] add FMF to tests for better coverage; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Wed May 4 09:10:54 PDT 2022
Author: Sanjay Patel
Date: 2022-05-04T12:10:38-04:00
New Revision: 4954f0d7b1cd378a9c186da054d6bf63970888c6
URL: https://github.com/llvm/llvm-project/commit/4954f0d7b1cd378a9c186da054d6bf63970888c6
DIFF: https://github.com/llvm/llvm-project/commit/4954f0d7b1cd378a9c186da054d6bf63970888c6.diff
LOG: [InstCombine] add FMF to tests for better coverage; NFC
The fold added with 9c4770eaab9d95c neglected to propagate FMF.
Added:
Modified:
llvm/test/Transforms/InstCombine/fma.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/InstCombine/fma.ll b/llvm/test/Transforms/InstCombine/fma.ll
index 15257f138cb25..912c37a5d4551 100644
--- a/llvm/test/Transforms/InstCombine/fma.ll
+++ b/llvm/test/Transforms/InstCombine/fma.ll
@@ -759,7 +759,7 @@ define <3 x float> @fma_unary_shuffle_ops_widening(<2 x float> %x, <2 x float> %
call void @use_vec3(<3 x float> %a)
%b = shufflevector <2 x float> %y, <2 x float> poison, <3 x i32> <i32 1, i32 0, i32 1>
%c = shufflevector <2 x float> %z, <2 x float> poison, <3 x i32> <i32 1, i32 0, i32 1>
- %r = call <3 x float> @llvm.fma.v3f32(<3 x float> %a, <3 x float> %b, <3 x float> %c)
+ %r = call fast <3 x float> @llvm.fma.v3f32(<3 x float> %a, <3 x float> %b, <3 x float> %c)
ret <3 x float> %r
}
@@ -775,7 +775,7 @@ define <2 x float> @fma_unary_shuffle_ops_narrowing(<3 x float> %x, <3 x float>
%b = shufflevector <3 x float> %y, <3 x float> poison, <2 x i32> <i32 1, i32 0>
call void @use_vec(<2 x float> %b)
%c = shufflevector <3 x float> %z, <3 x float> poison, <2 x i32> <i32 1, i32 0>
- %r = call <2 x float> @llvm.fma.v2f32(<2 x float> %a, <2 x float> %b, <2 x float> %c)
+ %r = call nnan nsz <2 x float> @llvm.fma.v2f32(<2 x float> %a, <2 x float> %b, <2 x float> %c)
ret <2 x float> %r
}
More information about the llvm-commits
mailing list