More maybe_fold_reference TLC
authorRichard Biener <rguenther@suse.de>
Tue, 11 May 2021 12:49:07 +0000 (14:49 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 11 May 2021 13:58:57 +0000 (15:58 +0200)
commitdfdedc1a753ebaa68381638dd8a2bcd84de5ec9e
tree264ea607ad3b92e746f7b243c37eff3fc1da7747
parent7862a1922d33f0fb926bba18e807bc591feb9498
More maybe_fold_reference TLC

This removes stale users of maybe_fold_reference where IL constraints
make it never do anything.

2021-05-11  Richard Biener  <rguenther@suse.de>

* gimple-fold.c (gimple_fold_call): Do not call
maybe_fold_reference on call arguments or the static chain.
(fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
inputs.
gcc/gimple-fold.c