diff options
author | Andrew Pinski <quic_apinski@quicinc.com> | 2024-08-29 10:58:41 -0700 |
---|---|---|
committer | Andrew Pinski <quic_apinski@quicinc.com> | 2024-08-30 07:09:07 -0700 |
commit | 04d11ded0132adb0054120fb5290154400991d13 (patch) | |
tree | 00a17bea2e54c502476cc1bacc0e0876850e6a1d /gcc/gdbhooks.py | |
parent | 87ce8172f0bf649a8a79ef7481fb3bf35882083f (diff) | |
download | gcc-04d11ded0132adb0054120fb5290154400991d13.zip gcc-04d11ded0132adb0054120fb5290154400991d13.tar.gz gcc-04d11ded0132adb0054120fb5290154400991d13.tar.bz2 |
expand: Small speed up expansion of __builtin_prefetch
This is a small speed up of the expansion of __builtin_prefetch.
Basically for the optional arguments, no reason to call expand_normal
on a constant integer that we know the value, just replace it with
GEN_INT/const0_rtx instead.
Bootstrapped and tested on x86_64-linux.
gcc/ChangeLog:
* builtins.cc (expand_builtin_prefetch): Rewrite expansion of the optional
arguments to not expand known constants.
Diffstat (limited to 'gcc/gdbhooks.py')
0 files changed, 0 insertions, 0 deletions