[all-commits] [llvm/llvm-project] 16df25: [APInt][NFC] Add branch hints to APInt single-word...

Steffen Larsen via All-commits all-commits at lists.llvm.org
Tue Sep 8 00:04:37 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 16df25d03f5a5becf9dbe994ef6b6d4546b357d9
      https://github.com/llvm/llvm-project/commit/16df25d03f5a5becf9dbe994ef6b6d4546b357d9
  Author: Steffen Larsen <sholstla at amd.com>
  Date:   2026-09-08 (Tue, 08 Sep 2026)

  Changed paths:
    M llvm/include/llvm/ADT/APInt.h
    M llvm/lib/Support/APInt.cpp

  Log Message:
  -----------
  [APInt][NFC] Add branch hints to APInt single-word (#219437)

The fast-path for APInt is generally done with for "single word"
integers, i.e. ones that can be represented in a single 64-bit word.
This commit adds branch hints to the single-word branching to help
indicate to the compilers prioritize branch-prediction towards the
fast-path. The trade-off of this is that the >64-bit APInt case will be
slower.

---------

Signed-off-by: Steffen Holst Larsen <sholstla at amd.com>



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