[llvm-bugs] [Bug 8942] Not aggressively optimizing std::fill loop (SCEVUDivExpr needs 'exact' bit)

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Dec 23 00:33:44 PST 2015


https://llvm.org/bugs/show_bug.cgi?id=8942

Sanjoy Das <sanjoy at playingwithpointers.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Sanjoy Das <sanjoy at playingwithpointers.com> ---
Looks like clang is able to optimize

void f1(int* begin, int* end) {
  std::fill(begin, end, 0);
}

to a call to memset now.

-- 
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/20151223/7d618b44/attachment.html>


More information about the llvm-bugs mailing list