[Bug tree-optimization/14841] [tree-ssa] const_array[CST] is not folded

dnovillo at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Aug 31 00:18:00 GMT 2004


------- Additional Comments From dnovillo at gcc dot gnu dot org  2004-08-31 00:18 -------
> fold array refs to constant arrays with a constant index
> 
> Find attached the almost completely untested patch ;-)
> 
Looks OK.  I would split the test done at the start of const_array_const_idx_elt
into a predicate that we can call from evaluate_stmt beforehand.

OK with that change (testing, etc).


Diego.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14841



More information about the Gcc-bugs mailing list