Assume a call is expensive when it mismatches
commit1cb220498e1f59021dab36c39c5d726e9f070c6a
authorRichard Biener <rguenther@suse.de>
Wed, 13 Apr 2022 13:43:01 +0000 (13 15:43 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 2 May 2022 12:58:51 +0000 (2 14:58 +0200)
tree15d7e4a2f8e31419626fc52f6c3dfbced17d5f02
parent41e3db05d697405256b6002d8432955a93d249f1
Assume a call is expensive when it mismatches

This makes sure to not consider calls to builtin decls with
mismatching arguments as inexpensive.

2022-04-13  Richard Biener  <rguenther@suse.de>

* tree-scalar-evolution.cc (expression_expensive_p):
Never consider mismatched calls as cheap.
gcc/tree-scalar-evolution.cc