aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/constexpr.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2022-01-12 10:42:32 +0100
committerRichard Biener <rguenther@suse.de>2022-05-02 08:06:04 +0200
commit82a344f206725ba002af4fed318f37dfb7e566a0 (patch)
tree41559765639811791e9b73de64af69dd9c4430ba /gcc/cp/constexpr.cc
parent4a0e89b10f6bdc1e285e0b9e6a435a0062f8936c (diff)
downloadgcc-82a344f206725ba002af4fed318f37dfb7e566a0.zip
gcc-82a344f206725ba002af4fed318f37dfb7e566a0.tar.gz
gcc-82a344f206725ba002af4fed318f37dfb7e566a0.tar.bz2
Use CASE_CONVERT in a few more cases
This uses CASE_CONVERT more which eases eventual removal of NOP_EXPR. 2022-04-29 Richard Biener <rguenther@suse.de> gcc/cp/ * constexpr.cc (fold_simple_1): Use CASE_CONVERT. * cp-gimplify.cc (cp_fold): Likewise. * pt.cc (tsubst_copy): Likewise. gcc/ * dojump.cc (do_jump): Use CASE_CONVERT. * tree-ssa-dom.cc (edge_info::derive_equivalences): Likewise.
Diffstat (limited to 'gcc/cp/constexpr.cc')
-rw-r--r--gcc/cp/constexpr.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cp/constexpr.cc b/gcc/cp/constexpr.cc
index 47d5113..c40efa6 100644
--- a/gcc/cp/constexpr.cc
+++ b/gcc/cp/constexpr.cc
@@ -8016,9 +8016,8 @@ fold_simple_1 (tree t)
case NEGATE_EXPR:
case BIT_NOT_EXPR:
case TRUTH_NOT_EXPR:
- case NOP_EXPR:
case VIEW_CONVERT_EXPR:
- case CONVERT_EXPR:
+ CASE_CONVERT:
case FLOAT_EXPR:
case FIX_TRUNC_EXPR:
case FIXED_CONVERT_EXPR: