[all-commits] [llvm/llvm-project] c03884: [InstCombine] Fold icmp (select c, const, arg), null...

Juneyoung Lee via All-commits all-commits at lists.llvm.org
Mon Jun 21 01:39:30 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c038845f58a84f03c88a03ab6a59014b3d6c180b
      https://github.com/llvm/llvm-project/commit/c038845f58a84f03c88a03ab6a59014b3d6c180b
  Author: Juneyoung Lee <aqjune at gmail.com>
  Date:   2021-06-21 (Mon, 21 Jun 2021)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
    A llvm/test/Transforms/InstCombine/assume-icmp-null-select.ll

  Log Message:
  -----------
  [InstCombine] Fold icmp (select c,const,arg), null if icmp arg, null can be simplified

This patch folds icmp (select c,const,arg), null if icmp arg, null can be simplified.

Resolves llvm.org/pr48975.

Reviewed By: nikic, xbolva00

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




More information about the All-commits mailing list