http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53647
--- Comment #8 from Uros Bizjak <ubizjak at gmail dot com> 2012-06-12 19:45:56 UTC --- Alternative patch with the same functionality: --cut here-- Index: tree-ssa-phiopt.c =================================================================== --- tree-ssa-phiopt.c (revision 188475) +++ tree-ssa-phiopt.c (working copy) @@ -1976,12 +1976,14 @@ /* Determine whether we should attempt to hoist adjacent loads out of diamond patterns in pass_phiopt. Always hoist loads if -fhoist-adjacent-loads is specified and the target machine has - a conditional move instruction. */ + defined cache line size and a conditional move instruction. */ static bool gate_hoist_loads (void) { - return (flag_hoist_adjacent_loads == 1 && HAVE_conditional_move); + return (flag_hoist_adjacent_loads == 1 + && PARAM_VALUE (PARAM_L1_CACHE_LINE_SIZE) + && HAVE_conditional_move); } /* Always do these optimizations if we have SSA --cut here--