Commit 245491a
committed
[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 9500a5d (#91082) caused -O0 -g
compile time regression.
9500a5d 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.1 parent 3591da9 commit 245491a
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2463 | 2463 | | |
2464 | 2464 | | |
2465 | 2465 | | |
| 2466 | + | |
| 2467 | + | |
| 2468 | + | |
2466 | 2469 | | |
2467 | 2470 | | |
2468 | 2471 | | |
2469 | 2472 | | |
2470 | 2473 | | |
| 2474 | + | |
2471 | 2475 | | |
2472 | 2476 | | |
2473 | 2477 | | |
| |||
0 commit comments