aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-parser.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2025-05-08 10:05:42 +0200
committerRichard Biener <rguenther@suse.de>2025-05-11 10:54:02 +0200
commit856c493db1d5e2fa9377f4a0c438afbcaf6c7e01 (patch)
tree0699e8d8aed4178181ceb1d0a3af172d6ab3b053 /gcc/c/c-parser.cc
parent7b38bab21a126512c17c8084ad78b6bf75fc1437 (diff)
downloadgcc-856c493db1d5e2fa9377f4a0c438afbcaf6c7e01.zip
gcc-856c493db1d5e2fa9377f4a0c438afbcaf6c7e01.tar.gz
gcc-856c493db1d5e2fa9377f4a0c438afbcaf6c7e01.tar.bz2
tree-optimization/120043 - bogus conditional store elimination
The following fixes conditional store elimination to properly check for conditional stores to readonly memory which we can obviously not store to unconditionally. The tree_could_trap_p predicate used is only considering rvalues and the chosen approach mimics that of loop store motion. PR tree-optimization/120043 * tree-ssa-phiopt.cc (cond_store_replacement): Check whether the store is to readonly memory. * gcc.dg/torture/pr120043.c: New testcase. (cherry picked from commit 93586e5d51188bf71f4f8fae4ee94ff631740f24)
Diffstat (limited to 'gcc/c/c-parser.cc')
0 files changed, 0 insertions, 0 deletions