-
- Downloads
re PR rtl-optimization/78812 (Wrong code generation due to hoisting memory...
re PR rtl-optimization/78812 (Wrong code generation due to hoisting memory load across function call) PR tree-optimizatin/78812 * rtl.h (contains_mem_rtx_p): Prototype. * ifcvt.c (containts_mem_rtx_p): Move from here to... * rtlanal.c (contains_mem_rtx_p): Here and remvoe static linkage. * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs. PR tree-optimization/78812 * g++.dg/torture/pr78812.C: New test. From-SVN: r244093
Showing
- gcc/ChangeLog 11 additions, 0 deletionsgcc/ChangeLog
- gcc/gcse.c 23 additions, 10 deletionsgcc/gcse.c
- gcc/ifcvt.c 0 additions, 13 deletionsgcc/ifcvt.c
- gcc/rtl.h 1 addition, 0 deletionsgcc/rtl.h
- gcc/rtlanal.c 13 additions, 0 deletionsgcc/rtlanal.c
- gcc/testsuite/ChangeLog 5 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/g++.dg/torture/pr78812.C 24 additions, 0 deletionsgcc/testsuite/g++.dg/torture/pr78812.C
Loading
Please register or sign in to comment