[PATCH] D27749: [APFloat] Fix rotl/rotr when the shift amount is greater than the total bit width.
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 9 10:39:50 PST 2017
efriedma added inline comments.
================
Comment at: lib/Support/APInt.cpp:1273
+ APInt rem = rotateModulo(BitWidth, rotateAmt);
+ return rotr((unsigned)rem.getLimitedValue(BitWidth));
}
----------------
Please move the call to getLimitedValue() into the helper.
Repository:
rL LLVM
https://reviews.llvm.org/D27749
More information about the llvm-commits
mailing list