aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/src/shared
diff options
context:
space:
mode:
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>2025-08-30 18:52:09 -0700
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>2025-09-02 14:36:53 -0700
commit97e77f567c2b21799010fe34e9a05f078abd5b55 (patch)
tree0a177ebf7b40868679fabadd8cc907009e86ac0d /libstdc++-v3/src/shared
parentcaa1c2f42691d68af4d894a5c3e700ecd2dba080 (diff)
downloadgcc-master.zip
gcc-master.tar.gz
gcc-master.tar.bz2
Move the folding of memcmpy to memcmpy_eq to fold all builtinsHEADtrunkmaster
This is a small cleanup by moving the optimization of memcmp to memcmp_eq to fab from strlen pass. Since the copy of the other part of the memcmp strlen optimization to forwprop, this was the only thing left that strlen can do memcmp. Note this move will cause memcmp_eq to be used for -Os too. It also removes the optimization from strlen since both are now handled elsewhere. Bootstrapped and tested on x86_64-linux-gnu. gcc/ChangeLog: * tree-ssa-ccp.cc (optimize_memcmp_eq): New function. (pass_fold_builtins::execute): Call optimize_memcmp_eq for memcmp. * tree-ssa-strlen.cc (strlen_pass::handle_builtin_memcmp): Remove. (strlen_pass::check_and_optimize_call): Don't call handle_builtin_memcmp. Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
Diffstat (limited to 'libstdc++-v3/src/shared')
0 files changed, 0 insertions, 0 deletions