[all-commits] [llvm/llvm-project] a7b154: [MC][ARM] Reuse symbol value in constant pool
luxufan via All-commits
all-commits at lists.llvm.org
Mon Jun 6 22:40:34 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a7b154aa1770a2223be2e99735fab54c1c081007
https://github.com/llvm/llvm-project/commit/a7b154aa1770a2223be2e99735fab54c1c081007
Author: luxufan <luxufan at iscas.ac.cn>
Date: 2022-06-07 (Tue, 07 Jun 2022)
Changed paths:
M llvm/include/llvm/MC/ConstantPools.h
M llvm/lib/MC/ConstantPools.cpp
M llvm/test/MC/ARM/ldr-pseudo-wide.s
Log Message:
-----------
[MC][ARM] Reuse symbol value in constant pool
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 Revision: https://reviews.llvm.org/D127113
More information about the All-commits
mailing list