Bitv indexing does not inline static values #19393
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
I-slow
Issue: Problems and improvements with respect to performance of generated code.
With
--opt-level=3
:In particular, there's the two
...mov...q _ZN3bit5...20h4511a5a4abbc9859osaE@GOTPCREL(%rip), %rcx
lines, which are loading the addresses ofTRUE
andFALSE
respectively. In the best case, the[]
notation on a bitv will not do this sinceTRUE
andFALSE
truly are constants and are OK to inline (alternatively, it could just avoid doing the hack to useIndex
and use a by-value index instead).The text was updated successfully, but these errors were encountered: