This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/66726] missed optimization, factor conversion out of COND_EXPR
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 03 Jul 2015 12:21:22 +0000
- Subject: [Bug tree-optimization/66726] missed optimization, factor conversion out of COND_EXPR
- Auto-submitted: auto-generated
- References: <bug-66726-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66726
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to kugan from comment #3)
> > really you should handle more
> > than two arguments to phis.
> I am not sure how we can handle phi stmt with more than two arguments here.
> Any hints please?
Yes they are all interger constants but one of them. Also I think you do have
another bug where the conversion is an extension the original interger has to
fit in the new type. That is if you converting from char to int.