[PATCH] D122299: [InstCombine] Fix missing nsw flag when fold -(x-y) to y-x
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 23 03:51:01 PDT 2022
xbolva00 added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineNegator.cpp:248
}
// Some other cases, while still don't require recursion,
----------------
CreateSub(I->getOperand(1), I->getOperand(0), I->getName() + ".neg", false, I->hasNoSignedWrap() && HasNSW); ?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122299/new/
https://reviews.llvm.org/D122299
More information about the llvm-commits
mailing list