diff options
author | Richard Biener <rguenther@suse.de> | 2025-05-08 10:05:42 +0200 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2025-05-08 12:59:02 +0200 |
commit | 93586e5d51188bf71f4f8fae4ee94ff631740f24 (patch) | |
tree | dc3f4cc92d244dc13afcff68dccf03e25d4651ca /libjava/classpath/lib/java | |
parent | 66f5f03853035cc917627e7d044bff8ccd9eca3f (diff) | |
download | gcc-93586e5d51188bf71f4f8fae4ee94ff631740f24.zip gcc-93586e5d51188bf71f4f8fae4ee94ff631740f24.tar.gz gcc-93586e5d51188bf71f4f8fae4ee94ff631740f24.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.
Diffstat (limited to 'libjava/classpath/lib/java')
0 files changed, 0 insertions, 0 deletions