[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
This commit is contained in:
Sanjay Patel 2018-05-16 22:47:51 +00:00
parent eedf265a2c
commit 68c83a24d4
1 changed files with 5 additions and 5 deletions

View File

@ -35,14 +35,14 @@ bb8: ; preds = %bb8, %bb7
%5 = fmul float %4, %0 ; <float> [#uses=1] %5 = fmul float %4, %0 ; <float> [#uses=1]
%6 = fsub float %3, %5 ; <float> [#uses=1] %6 = fsub float %3, %5 ; <float> [#uses=1]
%7 = fmul float %4, %1 ; <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] %9 = load float, float* %fi.1, align 4 ; <float> [#uses=2]
%10 = fsub float %9, %8 ; <float> [#uses=1] %10 = fsub float %9, %8 ; <float> [#uses=1]
%11 = fadd float %9, %8 ; <float> [#uses=1] %11 = fadd float %9, %8 ; <float> [#uses=1]
%12 = fsub float 0.000000e+00, %6 ; <float> [#uses=1] %12 = fsub float 0.000000e+00, %6 ; <float> [#uses=1]
%13 = fsub float 0.000000e+00, undef ; <float> [#uses=2] %13 = fsub float 0.000000e+00, %12
%14 = fmul float undef, %0 ; <float> [#uses=1] %14 = fmul float %0, %0
%15 = fadd float %14, undef ; <float> [#uses=2] %15 = fadd float %14, %14
%16 = load float, float* %scevgep81, align 4 ; <float> [#uses=2] %16 = load float, float* %scevgep81, align 4 ; <float> [#uses=2]
%17 = fsub float %16, %15 ; <float> [#uses=1] %17 = fsub float %16, %15 ; <float> [#uses=1]
%18 = fadd float %16, %15 ; <float> [#uses=2] %18 = fadd float %16, %15 ; <float> [#uses=2]
@ -68,6 +68,6 @@ bb8: ; preds = %bb8, %bb7
br i1 %34, label %bb8, label %bb9 br i1 %34, label %bb8, label %bb9
bb9: ; preds = %bb8 bb9: ; preds = %bb8
%35 = fadd float 0.000000e+00, undef ; <float> [#uses=1] %35 = fadd float 0.000000e+00, %34
br label %bb7 br label %bb7
} }