diff options
author | Richard Biener <rguenther@suse.de> | 2022-01-12 10:42:32 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2022-05-02 08:06:04 +0200 |
commit | 82a344f206725ba002af4fed318f37dfb7e566a0 (patch) | |
tree | 41559765639811791e9b73de64af69dd9c4430ba /gcc/cp/cp-gimplify.cc | |
parent | 4a0e89b10f6bdc1e285e0b9e6a435a0062f8936c (diff) | |
download | gcc-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/cp-gimplify.cc')
-rw-r--r-- | gcc/cp/cp-gimplify.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cp/cp-gimplify.cc b/gcc/cp/cp-gimplify.cc index e4c2644..b52d9cb 100644 --- a/gcc/cp/cp-gimplify.cc +++ b/gcc/cp/cp-gimplify.cc @@ -2451,9 +2451,8 @@ cp_fold (tree x) case VIEW_CONVERT_EXPR: rval_ops = false; /* FALLTHRU */ - case CONVERT_EXPR: - case NOP_EXPR: case NON_LVALUE_EXPR: + CASE_CONVERT: if (VOID_TYPE_P (TREE_TYPE (x))) { |