-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Open
Labels
llvm:GVNGVN and NewGVN stages (Global value numbering)GVN and NewGVN stages (Global value numbering)
Description
In this demo, hook_param has been memset, but in GVNPass , clang consideres hook_param.flags is uninitialized.
llvm-project/llvm/lib/IR/ConstantFold.cpp
Lines 676 to 678 in 6f241e3
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
Labels
llvm:GVNGVN and NewGVN stages (Global value numbering)GVN and NewGVN stages (Global value numbering)