[all-commits] [llvm/llvm-project] 3e6207: [InstCombine] Use SimplifyQuery for computeKnownBi...

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Nov 28 04:00:25 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3e6207a775dfed9a8b54e4afbbffb9d6cdabf3ef
      https://github.com/llvm/llvm-project/commit/3e6207a775dfed9a8b54e4afbbffb9d6cdabf3ef
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-11-28 (Tue, 28 Nov 2023)

  Changed paths:
    M llvm/include/llvm/Analysis/ValueTracking.h
    M llvm/include/llvm/Transforms/InstCombine/InstCombiner.h
    M llvm/lib/Analysis/ValueTracking.cpp

  Log Message:
  -----------
  [InstCombine] Use SimplifyQuery for computeKnownBits() (NFC)

Call computeKnownBits() with SimplifyQuery to make sure it gets
all available analyses, even if more are added in the future.

As this code is performance-critical, I'm exporting the variant
with by-ref KnownBits and SimplifyQuery, as the variant returning
KnownBits is measurably slower in this context.




More information about the All-commits mailing list