[llvm-dev] StringSwitch efficiency

Paul C. Anagnostopoulos via llvm-dev llvm-dev at lists.llvm.org
Thu Oct 29 11:48:58 PDT 2020


Excellent. Then I shall not concern myself with the efficiency of StringSwitch.

At 10/29/2020 02:28 PM, Chris Lattner wrote:
>Yeah, years ago, the compiler did the right thing through a combination of jump threading and simple redundancy elimination.  StringSwitch does a first character specialization IIRC.
>
>-Chris



More information about the llvm-dev mailing list