Files
clang-p2996/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Fangrui Song 245491a9f3 [MC] Disable MCAssembler based constant folding for DwarfDebug
Related to the poor performance of MCAssembler based constant folding
(see `bool MCExpr::evaluateAsAbsolute(int64_t &Res, const MCAssembler *Asm) const` and
`AttemptToFoldSymbolOffsetDifference`),
commit 9500a5d02e (#91082) caused -O0 -g
compile time regression.

9500a5d02e special cased .eh_frame FDE
emitting. This patch adds a special case to .debug_* emitting as well to
mitigate the rest regression.

The MCAssembler based constant folding strategy should be improved to
remove the two special cases.
2024-05-20 11:31:56 -07:00

164 KiB