[PATCH] D88388: [PowerPC] Skip combining (uint_to_fp x) if x is not simple type

Qing Shan Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 10 01:40:51 PDT 2020


steven.zhang accepted this revision.
steven.zhang added a comment.
This revision is now accepted and ready to land.

LGTM with minor nit.



================
Comment at: llvm/test/CodeGen/PowerPC/pr47660.ll:37
+entry:
+  %0 = and i24 %g.coerce, 255
+  %conv1 = uitofp i24 %0 to double
----------------
The test can be further reduced to 
```
        entry:
           %conv1 = uitofp i24 %g.coerce to double
           %mul = fmul double 0.000000e+00, %conv1
           %conv2 = fptoui double %mul to i8
           ret i8 %conv2
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D88388/new/

https://reviews.llvm.org/D88388



More information about the llvm-commits mailing list