diff options
author | Christoph Müllner <christoph.muellner@vrull.eu> | 2025-01-15 14:53:27 +0100 |
---|---|---|
committer | Christoph Müllner <christoph.muellner@vrull.eu> | 2025-01-16 09:51:12 +0100 |
commit | 57de373426e27395c0ef581c8a8300ec74c1bb59 (patch) | |
tree | c799db79fa5e0dcb02be11de5242d40ad5b7b72f /libjava/classpath | |
parent | ea1deefe54ea1c5182bfa179abf36469c9ec6974 (diff) | |
download | gcc-57de373426e27395c0ef581c8a8300ec74c1bb59.zip gcc-57de373426e27395c0ef581c8a8300ec74c1bb59.tar.gz gcc-57de373426e27395c0ef581c8a8300ec74c1bb59.tar.bz2 |
forwprop: Eliminate redundant calls to to_constant()
When extracting the amount of vector elements, we currently
first check if the value is a contant with is_constant(),
followed by obtaining the value with to_constant(),
which internally calls is_constant() again.
We can address this by using is_constant (T*), which also
provides the constant value.
gcc/ChangeLog:
* tree-ssa-forwprop.cc (recognise_vec_perm_simplify_seq):
Eliminate redundant calls to to_constant().
Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
Diffstat (limited to 'libjava/classpath')
0 files changed, 0 insertions, 0 deletions