[all-commits] [llvm/llvm-project] ab3fdb: [ValueTracking] Support srem/urem for isKnownNonNu...
Allen via All-commits
all-commits at lists.llvm.org
Fri Dec 1 00:20:53 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ab3fdbdfbe7edc62049c602d87be91c3ad3f5e3b
https://github.com/llvm/llvm-project/commit/ab3fdbdfbe7edc62049c602d87be91c3ad3f5e3b
Author: Allen <zhongyunde at huawei.com>
Date: 2023-12-01 (Fri, 01 Dec 2023)
Changed paths:
M llvm/lib/Analysis/ValueTracking.cpp
M llvm/test/Analysis/ValueTracking/select-known-non-zero.ll
M llvm/test/Transforms/InstCombine/zext-or-icmp.ll
Log Message:
-----------
[ValueTracking] Support srem/urem for isKnownNonNullFromDominatingCondition (#74021)
Similar to div, the rem should also proof its second operand is
non-zero, otherwise it is a UB.
Fix https://github.com/llvm/llvm-project/issues/71782
More information about the All-commits
mailing list