[Issue 10715] New: negated bit test (bt) not recognized by optimizer
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 25 16:00:36 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10715
Summary: negated bit test (bt) not recognized by optimizer
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: code at dawg.eu
--- Comment #0 from Martin Nowak <code at dawg.eu> 2013-07-25 16:00:35 PDT ---
bool bt(in uint[] ary, size_t bitnum)
{
return !!(ary[bitnum >> 5] & 1 << (bitnum & 31)); // uses bt
}
bool neg_bt(in uint[] ary, size_t bitnum)
{
return !(ary[bitnum >> 5] & 1 << (bitnum & 31)); // does not use bt
}
The bit test pattern recognition was added with
https://github.com/D-Programming-Language/dmd/pull/1509. It does not work for
negated bit tests though.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list