[all-commits] [llvm/llvm-project] 8b4afc: [APInt] Add a concat method, use LLVM_UNLIKELY to ...

Chris Lattner via All-commits all-commits at lists.llvm.org
Mon Sep 13 22:03:07 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8b4afc5aef148aff26047ca7bad4cdcf58c35e25
      https://github.com/llvm/llvm-project/commit/8b4afc5aef148aff26047ca7bad4cdcf58c35e25
  Author: Chris Lattner <clattner at nondot.org>
  Date:   2021-09-13 (Mon, 13 Sep 2021)

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

  Log Message:
  -----------
  [APInt] Add a concat method, use LLVM_UNLIKELY to help optimizer.

Three unrelated changes:

1) Add a concat method as a convenience to help write bitvector
   use cases in a nicer way.
2) Use LLVM_UNLIKELY as suggested by @xbolva00 in a previous patch.
3) Fix casing of some "slow" methods to follow naming standards.

Differential Revision: https://reviews.llvm.org/D109620




More information about the All-commits mailing list