[Bug tree-optimization/18046] Missed jump threading optimization
stevenb at suse dot de
gcc-bugzilla@gcc.gnu.org
Mon Oct 18 22:50:00 GMT 2004
------- Additional Comments From stevenb at suse dot de 2004-10-18 22:50 -------
Subject: Re: Missed jump threading optimization
Hmm, threading the default case sounds interesting, but the real
reason why the RTL threader catches this and the tree threader does
not is because on RTL the test case basically looks like this:
extern void foo (void);
extern int i;
void
bar (void)
{
if (i == 0)
foo ();
if (i == 0)
foo ();
}
Hey, I can thread that! :-)
So perhaps we should consider lowering SWITCH_EXPRs with only two
targets to COND_EXPRs after all...? That would be quite easy to
do.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18046
More information about the Gcc-bugs
mailing list