Skip to content

GlobalOpt can't see through PHI nodes when doing SROA on malloc's #2011

@llvmbot

Description

@llvmbot
Bugzilla Link 1639
Resolution FIXED
Resolved on Sep 13, 2007 16:34
Version trunk
OS All
Attachments gvn-out.bc
Reporter LLVM Bugzilla Contributor

Extended Description

GlobalOpt, when it tries to do SROA on malloc's, must ensure that all uses of the global would trap if the global were null. This check, however, cannot see through PHI nodes, which causes a regression on 179.art when using GVN. Attached is the example bitcode. Note that GlobalOpt fails to SROA the global variable f1_layer because of the instruction %tmp11.rle in init_net().

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzillacode-qualityipoInterprocedural optimizations

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions