Skip to content

[GVNSink] Reuse value numbering from GVN #92198

Open
@hiraditya

Description

@hiraditya

GVNSink has a custom gvn code see:

hash_code H = exp->getHashValue([=](Value *V) { return lookupOrAdd(V); });
This is not maintainable, we can reuse the one from GVN similar to how GVNHoist does it https://llvm.org/doxygen/GVNHoist_8cpp_source.html#l00225.

Metadata

Metadata

Assignees

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