[all-commits] [llvm/llvm-project] 3bf229: [InstCombine] Drop `samesign` flag in `foldAndOrOf...
Yingwei Zheng via All-commits
all-commits at lists.llvm.org
Wed Oct 16 01:25:06 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3bf2295ee0ebd1eafe66ca15dff44bdb31e6198a
https://github.com/llvm/llvm-project/commit/3bf2295ee0ebd1eafe66ca15dff44bdb31e6198a
Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
Date: 2024-10-16 (Wed, 16 Oct 2024)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
M llvm/test/Transforms/InstCombine/and-or-icmp-min-max.ll
M llvm/test/Transforms/InstCombine/and-or-icmp-nullptr.ll
Log Message:
-----------
[InstCombine] Drop `samesign` flag in `foldAndOrOfICmpsWithConstEq` (#112489)
In
https://github.com/llvm/llvm-project/commit/5dbfca30c1a672cd0c5089df2b4fdd171436643a
we assume that RHS is poison implies LHS is also poison. It doesn't hold
after introducing samesign flag.
This patch drops the `samesign` flag on RHS if the original expression
is a logical and/or.
Closes #112467.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list