This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: [PATCH 0/2] [ARC] Small fixes
- From: Claudiu Zissulescu <Claudiu dot Zissulescu at synopsys dot com>
- To: Joern Wolfgang Rennecke <gnu at amylaar dot uk>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: "Francois dot Bedard at synopsys dot com" <Francois dot Bedard at synopsys dot com>, "jeremy dot bennett at embecosm dot com" <jeremy dot bennett at embecosm dot com>
- Date: Mon, 25 Jan 2016 14:56:02 +0000
- Subject: RE: [PATCH 0/2] [ARC] Small fixes
- Authentication-results: sourceware.org; auth=none
- References: <1453728823-32064-1-git-send-email-claziss at synopsys dot com> <56A635E1 dot 80504 at amylaar dot uk>
> FWIW, there's probably a missed optimization here - these constant -
> constant comparisons could be folded down further.
They are. The issue is when the CSE runs, wants to validate a new instruction with the propagated constant, which will lead to errors as it checks the proper_comaprison_operator, as it hits the assert at the end. Returning zero, it invalidates the instruction change, and the constant comparison will be handled later on by other steps.
//Claudiu