[LLVMbugs] [Bug 22065] New: Optimize 0>=p-q to q >= p for char*p,*q;

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 30 12:08:00 PST 2014


            Bug ID: 22065
           Summary: Optimize   0>=p-q   to   q >= p  for char*p,*q;
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: llvmbugs at contacts.eelis.net
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

It was noticed that Boost's iterator_facade incurred a performance penalty
(while it should ideally be zero-overhead), which results from the fact that
Clang does not optimize   0>=p-q  to  q>=p  for char*p,*q;. See attachment.

Chandler was reported as saying it's a case of a missing InstCombine rule.

This probably applies to > and < and <= as well.

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/20141230/bffe0e68/attachment.html>

More information about the llvm-bugs mailing list