[all-commits] [llvm/llvm-project] 3c8a6b: [clang][bytecode] Optimize classify() further (#14...

Timm Baeder via All-commits all-commits at lists.llvm.org
Tue May 20 22:35:23 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3c8a6bc3b7bf3fd4ce7b1a4058874df09ba51676
      https://github.com/llvm/llvm-project/commit/3c8a6bc3b7bf3fd4ce7b1a4058874df09ba51676
  Author: Timm Baeder <tbaeder at redhat.com>
  Date:   2025-05-21 (Wed, 21 May 2025)

  Changed paths:
    M clang/lib/AST/ByteCode/Context.cpp
    M clang/lib/AST/ByteCode/Context.h

  Log Message:
  -----------
  [clang][bytecode] Optimize classify() further (#140735)

Try to do as few checks as possible. Check for builtin types only once,
then look at the BuiltinType Kind. For integers, we cache the int and
long size, since those are used a lot and the ASTContext::getIntWidth()
call is costly.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list