diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2018-05-16 22:47:51 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2018-05-16 22:47:51 +0000 |
| commit | 68c83a24d4979a4153c8855f8f336bfcc4820b2e (patch) | |
| tree | 70b2211556e386710bb58cfdcde3bc35fc33ac8f /llvm | |
| parent | eedf265a2cd49a4512e45925f46828ec7e19d3a5 (diff) | |
| download | bcm5719-llvm-68c83a24d4979a4153c8855f8f336bfcc4820b2e.tar.gz bcm5719-llvm-68c83a24d4979a4153c8855f8f336bfcc4820b2e.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: 332548
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/test/CodeGen/Thumb2/cross-rc-coalescing-2.ll | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/Thumb2/cross-rc-coalescing-2.ll b/llvm/test/CodeGen/Thumb2/cross-rc-coalescing-2.ll index ecb63b18b62..6f1a7f0f3dc 100644 --- a/llvm/test/CodeGen/Thumb2/cross-rc-coalescing-2.ll +++ b/llvm/test/CodeGen/Thumb2/cross-rc-coalescing-2.ll @@ -35,14 +35,14 @@ bb8: ; preds = %bb8, %bb7 %5 = fmul float %4, %0 ; <float> [#uses=1] %6 = fsub float %3, %5 ; <float> [#uses=1] %7 = fmul float %4, %1 ; <float> [#uses=1] - %8 = fadd float undef, %7 ; <float> [#uses=2] + %8 = fadd float %7, %7 %9 = load float, float* %fi.1, align 4 ; <float> [#uses=2] %10 = fsub float %9, %8 ; <float> [#uses=1] %11 = fadd float %9, %8 ; <float> [#uses=1] %12 = fsub float 0.000000e+00, %6 ; <float> [#uses=1] - %13 = fsub float 0.000000e+00, undef ; <float> [#uses=2] - %14 = fmul float undef, %0 ; <float> [#uses=1] - %15 = fadd float %14, undef ; <float> [#uses=2] + %13 = fsub float 0.000000e+00, %12 + %14 = fmul float %0, %0 + %15 = fadd float %14, %14 %16 = load float, float* %scevgep81, align 4 ; <float> [#uses=2] %17 = fsub float %16, %15 ; <float> [#uses=1] %18 = fadd float %16, %15 ; <float> [#uses=2] @@ -68,6 +68,6 @@ bb8: ; preds = %bb8, %bb7 br i1 %34, label %bb8, label %bb9 bb9: ; preds = %bb8 - %35 = fadd float 0.000000e+00, undef ; <float> [#uses=1] + %35 = fadd float 0.000000e+00, %34 br label %bb7 } |

