Skip to content

llvm-upgrade folds constant expressions #1528

@llvmbot

Description

@llvmbot
Bugzilla Link 1156
Resolution WONTFIX
Resolved on Mar 06, 2010 14:00
Version trunk
OS All
Reporter LLVM Bugzilla Contributor

Extended Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillacode-qualityllvm-toolsAll llvm tools that do not have corresponding tagwontfixIssue is real, but we can't or won't fix it. Not invalid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions