[all-commits] [llvm/llvm-project] 7bc666: [Analysis] Simplify the interface to llvm::getICmp...

Craig Topper via All-commits all-commits at lists.llvm.org
Tue Mar 1 10:09:21 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7bc666784566187c440a213a2cd2bf98658251f5
      https://github.com/llvm/llvm-project/commit/7bc666784566187c440a213a2cd2bf98658251f5
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-03-01 (Tue, 01 Mar 2022)

  Changed paths:
    M llvm/include/llvm/Analysis/CmpInstAnalysis.h
    M llvm/lib/Analysis/CmpInstAnalysis.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp

  Log Message:
  -----------
  [Analysis] Simplify the interface to llvm::getICmpCode. NFC

Instead of passing an InstCmpInt * and a bool just pass the predicate
from the caller.

I'm considering moving the similar FCmp functions from InstCombine
over here and this makes the interface consistent with what is used
for FCmp.

Reviewed By: RKSimon

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




More information about the All-commits mailing list