Skip to content

Compiler doesn't canonicalize truncates in SCEV expresions. #19542

@llvmbot

Description

@llvmbot
Bugzilla Link 19168
Version trunk
OS All
Attachments Reproducer
Reporter LLVM Bugzilla Contributor

Extended Description

LLVM doesn't perform a canonicalization of trunc expressions, and due to that round-trip of normalization-denormalization cant yield an expression, different from the original one. Post-Inc transformation gives-up in this case.

Attached is a test case revealing the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillallvm:SCEVScalar Evolution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions