Skip to content

Missed optimization due to instcombine + sroa creating inttoptr on 32bit platforms #23160

@dotdash

Description

@dotdash
Bugzilla Link 22786
Version trunk
OS Linux
Attachments Testcase

Extended Description

InstCombine turns memcpys of 8 bytes into a load/store which SROA might later split up into smaller values. In the attached test case, this ends up extracting a pointer to doing a trunc + inttoptr operation, which stops the second conditional branch from being eliminated, although it's clear that the branch to "panic" will never be taken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillallvm:instcombineCovers the InstCombine, InstSimplify and AggressiveInstCombine passesmissed-optimization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions