This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/37780] Conditional expression with __builtin_clz() should be optimized out
- From: "amker.cheng at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 20 Mar 2012 07:58:09 +0000
- Subject: [Bug middle-end/37780] Conditional expression with __builtin_clz() should be optimized out
- Auto-submitted: auto-generated
- References: <bug-37780-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37780
--- Comment #2 from amker.cheng <amker.cheng at gmail dot com> 2012-03-20 07:58:09 UTC ---
the special case could be easily detected when gimplifying.
but actually I am not sure whether it can be done even in middle end, since the
middle end should not depend on any target information, like
CLZ_DEFINED_VALUE_AT_ZERO, right?