This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/78103] Failure to optimize with __builtin_clzl
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 25 Oct 2016 09:34:09 +0000
- Subject: [Bug middle-end/78103] Failure to optimize with __builtin_clzl
- Auto-submitted: auto-generated
- References: <bug-78103-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78103
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #4)
> I wouldn't introduce a builtin, that would be user accessible, perhaps
> internal function + corresponding optab and just pattern match it.
Yeah, IFN + optab is now the canonical way of doing "instruction selection"
on GIMPLE. [you could even have target dependent IFNs if you manage
to write a md define-insn to match.pd rule plus IFN generator skipping
the optab]