]> git.ipfire.org Git - thirdparty/gcc.git/commit
fab/gimple-fold: Move removal of ASSUME internal function to gimple fold [PR121762]
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Tue, 23 Sep 2025 05:25:29 +0000 (22:25 -0700)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Fri, 3 Oct 2025 14:18:03 +0000 (07:18 -0700)
commit3eadb2d22a65bf146cd33566c89f6b3c27dc8d23
tree1b9af73d713558fb4d522588830634c7ce38b187
parentaca8f47ffe98ed0f410c8e9cbe376749f68e4e71
fab/gimple-fold: Move removal of ASSUME internal function to gimple fold [PR121762]

This moves the removal of the ASSUME internal function to gimple fold.
The only thing is fab for -Og support until fab is removed either needs to stay
or changed over to a fold_stmt. I decided to change over to a fold_stmt for
internal function calls. I am almost positive this won't change much either way.

Bootstrapped and tested on x86_64-linux-gnu.

PR tree-optimization/121762
gcc/ChangeLog:

* gimple-fold.cc (gimple_fold_call): Remove ASSUME internal function
calls when PROP_last_full_fold is set.
* tree-ssa-ccp.cc (pass_fold_builtins::execute): Handling folding
of all internal functions.

Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
gcc/gimple-fold.cc
gcc/tree-ssa-ccp.cc