[LLVMbugs] [Bug 11181] New: suboptimal code generation in strlen constant folding

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Oct 19 12:56:29 PDT 2011


           Summary: suboptimal code generation in strlen constant folding
           Product: new-bugs
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: s3734770 at mail.zih.tu-dresden.de
                CC: llvmbugs at cs.uiuc.edu

target datalayout =

declare i32 @strlen(i8* noalias nocapture) nounwind readonly
@nullstring = internal constant i8 0

define i32 @main() {
  %len = tail call i32 @strlen(i8* @nullstring) nounwind
  ret i32 %len

strlen does not seem to look at the data behind @nullstring when it does not
have a specific format

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