Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARC64/GCC: Improve iirflt01 performance #118

Open
claziss opened this issue Oct 31, 2023 · 0 comments
Open

ARC64/GCC: Improve iirflt01 performance #118

claziss opened this issue Oct 31, 2023 · 0 comments
Assignees

Comments

@claziss
Copy link
Contributor

claziss commented Oct 31, 2023

The iirflt01 benchmark is reported to deliver only 1/4 performance of the MWDT compiled version.

One of the problem is missing GIMPLE optimization which converts a floating point comparison of an integer with a constant float to integer comparison.

The fault is located in gcc's match.pb file:

/* Optimize various special cases of (FTYPE) N CMP CST. */

...

(if (fmt.can_represent_integral_type_p (itype) && ! exception_p)

...

The call to can_represent ... doesn't match.

A quick hack show us a jump from 481 to 610 (26%)

@claziss claziss self-assigned this Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant