diff options
author | Andrew Pinski <quic_apinski@quicinc.com> | 2024-10-03 02:23:55 +0000 |
---|---|---|
committer | Andrew Pinski <quic_apinski@quicinc.com> | 2024-10-04 15:25:39 +0000 |
commit | 6064420ebddede802904a740363047b5403598d1 (patch) | |
tree | ba2bb7a5ed38111f616ebcc945f068ff8aa8d7a2 /gcc | |
parent | 115857bf1e32637e258a9329fdf25cf924d01e90 (diff) | |
download | gcc-6064420ebddede802904a740363047b5403598d1.zip gcc-6064420ebddede802904a740363047b5403598d1.tar.gz gcc-6064420ebddede802904a740363047b5403598d1.tar.bz2 |
cfgexpand: Expand comment on when non-var clobbers can show up
The comment here is not wrong, just it would be better if mentioning
the C++ front-end instead of just the nested function lowering.
gcc/ChangeLog:
* cfgexpand.cc (add_scope_conflicts_1): Expand comment
on when non-var clobbers show up.
Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cfgexpand.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cfgexpand.cc b/gcc/cfgexpand.cc index f32cf1b..6c10963 100644 --- a/gcc/cfgexpand.cc +++ b/gcc/cfgexpand.cc @@ -639,8 +639,9 @@ add_scope_conflicts_1 (basic_block bb, bitmap work, bool for_conflict) { tree lhs = gimple_assign_lhs (stmt); unsigned *v; - /* Nested function lowering might introduce LHSs - that are COMPONENT_REFs. */ + /* Handle only plain var clobbers. + Nested functions lowering and C++ front-end inserts clobbers + which are not just plain variables. */ if (!VAR_P (lhs)) continue; if (DECL_RTL_IF_SET (lhs) == pc_rtx |