[llvm] [InstCombine] Set `samesign` when converting signed predicates into unsigned (PR #112642)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 17 00:01:54 PDT 2024
================
@@ -6774,8 +6774,11 @@ Instruction *InstCombinerImpl::foldICmpUsingKnownBits(ICmpInst &I) {
// have the same sign.
if (I.isSigned() &&
----------------
nikic wrote:
Shouldn't we also set the flag if `!isSigned()`?
https://github.com/llvm/llvm-project/pull/112642
More information about the llvm-commits
mailing list