[APInt] Inline the single word case of lshrInPlace similar to what we do for <<=.
llvm-svn: 300577
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp
index 8b23179..6303dd8 100644
--- a/llvm/lib/Support/APInt.cpp
+++ b/llvm/lib/Support/APInt.cpp
@@ -1140,15 +1140,7 @@
/// Logical right-shift this APInt by shiftAmt.
/// @brief Logical right-shift function.
-void APInt::lshrInPlace(unsigned ShiftAmt) {
- if (isSingleWord()) {
- if (ShiftAmt >= BitWidth)
- VAL = 0;
- else
- VAL >>= ShiftAmt;
- return;
- }
-
+void APInt::lshrSlowCase(unsigned ShiftAmt) {
tcShiftRight(pVal, getNumWords(), ShiftAmt);
}