[LLVMbugs] [Bug 1156] NEW: llvm-upgrade folds constant expressions

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Feb 1 10:22:44 PST 2007


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

           Summary: llvm-upgrade folds constant expressions
           Product: tools
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: llvm-upgrade
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rspencer at x10sys.com


Because llvm-upgrade is now using VMCore for its representation, it gets all
constants that it creates folded automatically. This doesn't cause any semantic
problems but also doesn't lead to an apples-to-apples translation. For example:

%D = ashr int %X, ubyte trunc ( int shl  (int 3, ubyte 1) to ubyte )

becomes

%D = ashr int %X, ubyte 6

It's unclear whether this should be fixed or not.  Its also unclear how to fix
it unless we add a "-disable-constant-folding" switch to vmcore.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list