The add+and sequence followed by a branch can happen e.g. when looping over the set bits of an integer:
while (x != 0) { func(x & ~x); x &= x - 1; }
Paths
| Differential D57296
[X86] Add some missing blsr patterns ClosedPublic Authored by GBuella on Jan 26 2019, 9:32 PM.
Details Summary The add+and sequence followed by a branch can happen e.g. when looping over the set bits of an integer: while (x != 0) { func(x & ~x); x &= x - 1; }
Diff Detail
Event TimelineComment Actions The two corresponding test cases are not yet commited, This revision is now accepted and ready to land.Jan 26 2019, 9:41 PM Closed by commit rL352306: [X86] Add some missing blsr patterns (authored by GBuella). · Explain WhyJan 26 2019, 10:15 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 183746 llvm/lib/Target/X86/X86InstrInfo.td
llvm/test/CodeGen/X86/bmi.ll
|