[all-commits] [llvm/llvm-project] 703423: [InstCombine] relax constraint on udiv fold

Sanjay Patel via All-commits all-commits at lists.llvm.org
Mon Feb 20 12:08:47 PST 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 703423c26965cd2e5b331e587d87f8ee291d956a
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2023-02-20 (Mon, 20 Feb 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
    M llvm/test/Transforms/InstCombine/div.ll

  Log Message:
  [InstCombine] relax constraint on udiv fold

The pair of div folds was just added with:

But as noted in the post-commit review, we don't actually need
the no-remainder requirement for an unsigned division (still
need the no-unsigned-wrap though):

More information about the All-commits mailing list