diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2018-05-16 22:47:42 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2018-05-16 22:47:42 +0000 |
| commit | eedf265a2cd49a4512e45925f46828ec7e19d3a5 (patch) | |
| tree | 4f008e74987d30161213e6b90fc2d51f7be8ff66 | |
| parent | 04951d4fc3e496372abb13dcb2b95a1459574ced (diff) | |
| download | bcm5719-llvm-eedf265a2cd49a4512e45925f46828ec7e19d3a5.tar.gz bcm5719-llvm-eedf265a2cd49a4512e45925f46828ec7e19d3a5.zip | |
[Thumb] preserve test intent by removing undef
We need to clean up the DAG floating-point undef logic.
This process is similar to how we handled integer undef
logic in D43141.
And as we did there, I'm trying to reduce the patch by
changing tests that would probably become meaningless
once we correct FP undef folding.
llvm-svn: 332547
| -rw-r--r-- | llvm/test/CodeGen/Thumb2/thumb2-spill-q.ll | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/Thumb2/thumb2-spill-q.ll b/llvm/test/CodeGen/Thumb2/thumb2-spill-q.ll index f408242ea01..995c2bc3fea 100644 --- a/llvm/test/CodeGen/Thumb2/thumb2-spill-q.ll +++ b/llvm/test/CodeGen/Thumb2/thumb2-spill-q.ll @@ -53,17 +53,17 @@ bb4: ; preds = %bb193, %entry %4 = fadd <4 x float> %3, %part0.0.0261 ; <<4 x float>> [#uses=1] %5 = shufflevector <4 x float> %3, <4 x float> undef, <2 x i32> <i32 2, i32 3> ; <<2 x float>> [#uses=1] %6 = shufflevector <2 x float> %5, <2 x float> undef, <4 x i32> <i32 1, i32 1, i32 1, i32 1> ; <<4 x float>> [#uses=1] - %7 = fmul <4 x float> %1, undef ; <<4 x float>> [#uses=1] + %7 = fmul <4 x float> %1, %1 %8 = fadd <4 x float> %7, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01> ; <<4 x float>> [#uses=1] %9 = fptosi <4 x float> %8 to <4 x i32> ; <<4 x i32>> [#uses=1] %10 = sitofp <4 x i32> %9 to <4 x float> ; <<4 x float>> [#uses=1] %11 = fmul <4 x float> %10, %2 ; <<4 x float>> [#uses=1] - %12 = fmul <4 x float> undef, %6 ; <<4 x float>> [#uses=1] + %12 = fmul <4 x float> %6, %6 %13 = fmul <4 x float> %11, %4 ; <<4 x float>> [#uses=1] %14 = fsub <4 x float> %12, %13 ; <<4 x float>> [#uses=1] - %15 = fsub <4 x float> %14, undef ; <<4 x float>> [#uses=1] + %15 = fsub <4 x float> %14, %14 %16 = fmul <4 x float> %15, <float 2.000000e+00, float 2.000000e+00, float 2.000000e+00, float 2.000000e+00> ; <<4 x float>> [#uses=1] - %17 = fadd <4 x float> %16, undef ; <<4 x float>> [#uses=1] + %17 = fadd <4 x float> %16, %16 %18 = fmul <4 x float> %17, %val173 ; <<4 x float>> [#uses=1] %19 = shufflevector <4 x float> %18, <4 x float> undef, <2 x i32> <i32 2, i32 3> ; <<2 x float>> [#uses=1] %20 = shufflevector <2 x float> %19, <2 x float> undef, <4 x i32> zeroinitializer ; <<4 x float>> [#uses=1] |

