Skip to content

[Bug] GVNPass incorrectly considered as uninitialized #126354

Open
@Zhenhang1213

Description

@Zhenhang1213

In this demo, hook_param has been memset, but in GVNPass , clang consideres hook_param.flags is uninitialized.

case Instruction::Or: // X | undef -> -1
if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef | undef -> undef
return C1;

https://godbolt.org/z/83nMW8M8o

Metadata

Metadata

Assignees

No one assigned

    Labels

    llvm:GVNGVN and NewGVN stages (Global value numbering)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions