Fix https://github.com/llvm/llvm-project/issues/55816
Before this patch, MCConstantExpr were reused, but MCSymbolExpr were
not. To reuse symbol value, this patch added a DenseMap to record the
symbol value.
Differential D127113
[MC][ARM] Reuse symbol value in constant pool Authored by StephenFan on Jun 6 2022, 7:22 AM.
Details
Fix https://github.com/llvm/llvm-project/issues/55816 Before this patch, MCConstantExpr were reused, but MCSymbolExpr were
Diff Detail
Unit Tests Event TimelineComment Actions
Just say Fix https://github.com/llvm/llvm-project/issues/55816
| ||||||||
if (C) { auto CItr = CachedConstantEntries.find(C->getValue()); if (CItr != CachedConstantEntries.end()) return CItr->second; } if (S) { ... }