Vectorized `bitset::to_string()` remove `_Load_constant()` trick

Aperta
#6,473 1 commento 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp

Direzione di ricerca

Start in stl/src/vector_algorithms.cpp around lines 12125–12126 and trace the _Load_constant() implementations used by vectorized bitset::to_string(). Inspect the generated code and run the relevant benchmark to verify whether literal-constructed vectors preserve the improved compiler behavior. Done means the workaround and its implementations are safely removable without a code-generation or performance regression.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

There's DevCom-11056873 workaround

https://github.com/microsoft/STL/blob/94aef91ebec9e6e3fd9302840e657b09e536d90d/stl/src/vector_algorithms.cpp#L12125-L12126

The compiler issue has been fixed.

The call to _Load_constant() and each its implementation can probably be safely replaced with vectors constructed from literals.

But need to inspect codegen and/or run the benchmark to see if it is really fixed.

Lingua principale
C++
Stelle
11.2k
Fork
1.7k
Merge medio
4g 4h
PR unite (30g)
14

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/STL

Tutte le issue di microsoft/STL

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.