|
|
|
|
|
by aw1621107
1714 days ago
|
|
> template-heavy code results in convoluted IR with tons of unreachable code Does it? Honest question; my impression was that template-heavy code can tend to produce deep call trees, but not necessarily outright unreachable code unless you count instantiations ruled out by SFINAE/std::enable_if/tag dispatching, for which UB-based analyses are not necessary. In addition, I thought template (meta)programming relied very heavily on compile-time knowledge, which seems to obviate the need for UB-based analyses in many cases. I'm not particularly experienced, though, so maybe there's a gaping hole I'm missing. |
|
But C code is often heavily inlined, too, and similarly pruned.