[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
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:
4966d8ebe1bbe5bd6a4d28
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):
https://alive2.llvm.org/ce/z/qHjK3Q
More information about the All-commits
mailing list