call.c (null_ptr_cst_p): Order checks according to expensiveness.
authorRichard Biener <rguenther@suse.de>
Wed, 24 Apr 2019 10:08:07 +0000 (10:08 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 24 Apr 2019 10:08:07 +0000 (10:08 +0000)
commitbe39d6f0379ab74356cf406974055c3a1e68d127
tree536b7efc8d081600600564418ea0eb476ce9f406
parentf9bfdfa2025512c8adb1e280e2df98e0512fbf30
call.c (null_ptr_cst_p): Order checks according to expensiveness.

2019-04-24  Richard Biener  <rguenther@suse.de>

cp/
* call.c (null_ptr_cst_p): Order checks according to expensiveness.
(conversion_null_warnings): Likewise.
* typeck.c (same_type_ignoring_top_level_qualifiers_p): Return
early if type1 == type2.

From-SVN: r270539
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/typeck.c