[LLVMbugs] [Bug 2068] New: Passing thousands of individual params instead of by value

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Feb 19 11:01:50 PST 2008


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

           Summary: Passing thousands of individual params instead of by
                    value
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: isanbard at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=1430)
 --> (http://llvm.org/bugs/attachment.cgi?id=1430)
What my machine actually generates

2008-01-25-ByValReadNone.c is failing on my machine (PPC Mac G4 running Tiger):

FAIL: /Users/wendling/llvm/llvm.src/test/CFrontend/2008-01-25-
ByValReadNone.c
Failed with exit(1) at line 1
while running: /Users/wendling/llvm/llvm-gcc-4.2.install/bin/llvm-gcc
-emit-llvm -O3 -S -o - -emit-llvm /Users/wendling/llvm/llvm.src/test/
CFrontend/2008-01-25-ByValReadNone.c | not grep readonly
        %tmp1505 = call i32 @g( i64 %x.0.0, i64 %x.0.1, i64 %x.0.2,
i64 %x.0.3, i64 %x.0.4, i64 %x.0.5, i64 %x.0.6, i64 %x.0.7, i64 %x.
0.8, i64 %x.0.9, i64 %x.0.10, i64 %x.0.11, i64 %x.0.12, i64 %x.0.13,
i64 %x.0.14, i64 %x.0.15, i64 %x.0.16, i64 %x.0.17, i64 %x.0.18, i64 %
x.0.19, i64 %x.0.20, i64 %x.0.21, i64 %x.0.22, i64 %x.0.23, i64 %x.
0.24, i64 %x.0.25, i64 %x.0.26, i64 %x.0.27, i64 %x.0.28, i64 %x.
0.29, i64 %x.0.30, i64 %x.0.31, i64 %x.0.32, i64 %x.0.33, i64 %x.
0.34, i64 %x.0.35, i64 %x.0.36, i64 %x.0.37, i64 %x.0.38, i64 %x.
...
0.487, i64 %x.0.488, i64 %x.0.489, i64 %x.0.490, i64 %x.0.491, i64 %x.
0.492, i64 %x.0.493, i64 %x.0.494, i64 %x.0.495, i64 %x.0.496, i64 %x.
0.497, i64 %x.0.498, i64 %x.0.499 ) nounwind readonly        ; <i32>
[#uses=1]
...

It appears to be passing the humongous array into the functions by individual
values instead of by value.


-- 
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