[llvm-bugs] [Bug 52032] Suboptimal materialization of += 1 as -= -1

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 29 13:20:26 PDT 2021


Sanjay Patel <spatel+llvm at rotateright.com> changed:

           What    |Removed                     |Added
         Resolution|---                         |FIXED
 Fixed By Commit(s)|                            |285b8abce483
             Status|NEW                         |RESOLVED

--- Comment #2 from Sanjay Patel <spatel+llvm at rotateright.com> ---
We should use broadcast and fold loads after:
...but as I mentioned in the commit message, I'm not sure if this results in a
perf win even if it looks better. 

Using pcmpeq to create an all-ones vector still seems like the right trade-off
for most cases.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20211029/d29e31c4/attachment.html>

More information about the llvm-bugs mailing list