[all-commits] [llvm/llvm-project] 25043c: [NFCI] Introduce `ICmpInst::compare()` and use it ...

Roman Lebedev via All-commits all-commits at lists.llvm.org
Sat Oct 30 07:50:39 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 25043c8276644e684f8d14cd4cadaa87a7e99b0e
      https://github.com/llvm/llvm-project/commit/25043c8276644e684f8d14cd4cadaa87a7e99b0e
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2021-10-30 (Sat, 30 Oct 2021)

  Changed paths:
    M llvm/include/llvm/CodeGen/Analysis.h
    M llvm/include/llvm/IR/Instructions.h
    M llvm/include/llvm/IR/PatternMatch.h
    M llvm/lib/CodeGen/Analysis.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
    M llvm/lib/IR/ConstantFold.cpp
    M llvm/lib/IR/Instructions.cpp
    M llvm/lib/Transforms/IPO/AttributorAttributes.cpp
    M llvm/unittests/IR/ConstantRangeTest.cpp

  Log Message:
  -----------
  [NFCI] Introduce `ICmpInst::compare()` and use it where appropriate

As noted in https://reviews.llvm.org/D90924#inline-1076197
apparently this is a pretty common pattern,
let's not repeat it yet again, but have it in a common place.

There may be some more places where it could be used,
but these are the most obvious ones.




More information about the All-commits mailing list