[all-commits] [llvm/llvm-project] 704b2e: [GlobalISel] Add isConstFalseVal helper to Utils

Jessica Paquette via All-commits all-commits at lists.llvm.org
Wed Sep 28 15:44:50 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 704b2e162c53ab964225799106ba3a45ee888d9f
      https://github.com/llvm/llvm-project/commit/704b2e162c53ab964225799106ba3a45ee888d9f
  Author: Jessica Paquette <jpaquette at apple.com>
  Date:   2022-09-28 (Wed, 28 Sep 2022)

  Changed paths:
    M llvm/include/llvm/CodeGen/GlobalISel/Utils.h
    M llvm/lib/CodeGen/GlobalISel/Utils.cpp
    M llvm/unittests/CodeGen/GlobalISel/GISelUtilsTest.cpp

  Log Message:
  -----------
  [GlobalISel] Add isConstFalseVal helper to Utils

Add a utility function which returns true if the given value is a constant
false value.

This is necessary to port one of the compare simplifications in
TargetLowering::SimplifySetCC.

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




More information about the All-commits mailing list