[PATCH] More maybe_fold_reference TLC

2021-05-11 Thread Richard Biener
This removes stale users of maybe_fold_reference where IL constraints make it never do anything. Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed. 2021-05-11 Richard Biener * gimple-fold.c (gimple_fold_call): Do not call maybe_fold_reference on call arguments or the

[PATCH] More maybe_fold_reference TLC

2021-05-11 Thread Richard Biener
This adjusts maybe_fold_reference to adhere to its desired behavior of performing constant folding and thus explicitely avoid returning unfolded reference trees. Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed. 2021-05-11 Richard Biener * gimple-fold.c (maybe_fold_referenc