[PATCH] D127113: [MC][ARM] Reuse symbol value in constant pool
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 6 13:16:02 PDT 2022
MaskRay added a comment.
> This patch trys to fix https://github.com/llvm/llvm-project/issues/55816
Just say `Fix https://github.com/llvm/llvm-project/issues/55816`
================
Comment at: llvm/lib/MC/ConstantPools.cpp:48
+ if (CItr != CachedConstantEntries.end())
+ return CItr->second;
+
----------------
```
if (C) {
auto CItr = CachedConstantEntries.find(C->getValue());
if (CItr != CachedConstantEntries.end())
return CItr->second;
}
if (S) {
...
}
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127113/new/
https://reviews.llvm.org/D127113
More information about the llvm-commits
mailing list