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

           Summary: The bitwise-instruction optimizer doesn't know about
                    alignment of globals.
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [email protected]


Consider "i64 and (i64 ptrtoint (i64 (i64)* @cons to i64), i64 -8)"[1].
(Where @cons is a global function with an alignment >= 8 specified)
Such expressions aren't simplified by "opt -std-compile-opts", even though the
relevant bits of the ptrtoint result are guaranteed to be zero because of
above-mentioned alignment and similar optimizations are performed if the
pointer is replaced by an integer.


[1]: That expression was shortened for readability, and not actually tested in
this form. The actual expression was "i64 inttoptr (i64 and (i64 or (i64
ptrtoint (i64 (i64)* @cons to i64), i64 1), i64 -8) to i64 (i64)*)".


-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to