This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/15559] [3.3/3.4/3.5 Regression] SSAPRE misses obvious redundant expression


------- Additional Comments From dberlin at gcc dot gnu dot org  2004-06-10 16:45 -------
Theoretically yes, but no PRE algorithm will do what you suggest, you need a generic code hoisting 
algorithm.  The transformation you suggest violates the optimality conditions of PRE, even if it can later 
make better code, so it wouldn't be performed.
In short, PRE is for partial redundancies, not a cost based generic code hoister, so this is not a case of 
PRE missing obvious redundant expressions. There is no redundant expression (it occurs once along 
each path) here that it could eliminate, there is simply an expression that could be hoisted one block 
up.

-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]