| Issue |
170406
|
| Summary |
Backend: Remove redundant `fcanonicalize`
|
| Labels |
new issue
|
| Assignees |
wzssyqa
|
| Reporter |
wzssyqa
|
Code like
```
define float @minimumnum_fp32(float %a, float %b, float %c, float %d) {
%minab = call float @llvm.minimumnum.f32(float %a, float %b)
%mincd = call float @llvm.minimumnum.f32(float %c, float %d)
%min = call float @llvm.minimumnum.f32(float %minab, float %mincd)
ret float %min
}
```
On platforms has `fmaxnum_ieee`, the `fcanonicalize` is not needed for the 3rd `llvm.minimumnum.f32`.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs