[all-commits] [llvm/llvm-project] 63fb98: [IR] Add helper for comparing KnownBits with IR pr...

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Nov 12 08:41:31 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 63fb980d50c2ab513dd046f93983bab93dee787f
      https://github.com/llvm/llvm-project/commit/63fb980d50c2ab513dd046f93983bab93dee787f
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-11-12 (Tue, 12 Nov 2024)

  Changed paths:
    M llvm/include/llvm/IR/Instructions.h
    M llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
    M llvm/lib/IR/Instructions.cpp

  Log Message:
  -----------
  [IR] Add helper for comparing KnownBits with IR predicate (NFC) (#115878)

Add `ICmpInst::compare()` overload accepting `KnownBits`, similar to the
existing one accepting `APInt`. This is not directly part of KnownBits
(or APInt) for layering reasons.



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