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

            Bug ID: 24081
           Summary: missed opportunities for using merge sections on ELF
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

ELF doesn't have a fixed set of sections. In particular, the merge size is just
a field of the section (e_shentsize).

We don't model that very well and miss out on some changes to use those
sections. For example, given

__m256 bar(__m256 a) {
    __m256 c = {1,2,3,4};
    return a + c;
}

We use

 .section    .rodata,"a",@progbits

we we could use a merge section with an entry size of 32. I think the same
happens for size 2 (half float for example).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to