[PATCH] D54237: Constant folding and instcombine for saturating adds
Bjorn Pettersson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 8 02:32:57 PST 2018
bjope added inline comments.
================
Comment at: lib/Support/APInt.cpp:1953
+ APInt Res = sadd_ov(RHS, Overflow);
+ if (Overflow) {
+ if (isNegative()) {
----------------
nikic wrote:
> bjope wrote:
> > Coding style: skip all braces here.
> I've left the braces on the overflow branch, otherwise there's a dangling else compiler warning.
Yes, this is ok (not sure why I wrote "skip all", that was confusing).
https://reviews.llvm.org/D54237
More information about the llvm-commits
mailing list