This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/50160] vector<bool> comparison very slow (no overload)
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 31 Aug 2011 15:23:56 +0000
- Subject: [Bug libstdc++/50160] vector<bool> comparison very slow (no overload)
- Auto-submitted: auto-generated
- References: <bug-50160-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50160
--- Comment #26 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2011-08-31 15:23:56 UTC ---
Various processors have an instruction to reverse the bit order in a word
(ARMv6T2 and later have RBIT, for example, and C6X has BITR on C64X and
above). I think a generic built-in function (variants for different type
sizes) with associated generic RTL representation and lowering for
processors without such an instruction makes sense.