[LLVMbugs] [Bug 5783] New: simplifylibcalls should constant fold strstr

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Dec 14 14:10:52 PST 2009


http://llvm.org/bugs/show_bug.cgi?id=5783

           Summary: simplifylibcalls should constant fold strstr
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Scalar Optimizations
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: clattner at apple.com
                CC: llvmbugs at cs.uiuc.edu, regehr at cs.utah.edu


One of the major things punishing clang on John Regehr's test is that clang
doesn't constant fold strstr, here's a trivial case:

const char *foo() {
  return strstr ("22.84.16 (Xaw toolkit)", "-cvs");
}

e.g.:
http://embed.cs.utah.edu/embarrassing/src_harvested_dec_09/077024.c


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list