This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/45397] [4.5/4.6 Regression] Issues with integer narrowing conversions
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Aug 2010 13:41:38 -0000
- Subject: [Bug tree-optimization/45397] [4.5/4.6 Regression] Issues with integer narrowing conversions
- References: <bug-45397-87@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from jakub at gcc dot gnu dot org 2010-08-24 13:41 -------
Created an attachment (id=21556)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21556&action=view)
minmax.patch
I've also noticed that the folder only recognizes the inner MAX_EXPR, but
doesn't recognize the outer MIN_EXPR. Apparently (when convert_to_integer
doesn't harm it, i.e. the bar testcase instead of foo) phiopt1 later on figures
this out. The attached (untested) patch handles that case early, but not sure
it is worth it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45397