Use pre-inc, pre-dec when possible.

They are generally faster (at least not slower) than post-inc, post-dec.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177608 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jakub Staszak
2013-03-20 23:56:19 +00:00
parent 7f19e5db5f
commit 2adf8ccbf0
3 changed files with 12 additions and 12 deletions

View File

@ -161,11 +161,11 @@ public:
}
APSInt& operator++() {
static_cast<APInt&>(*this)++;
++(static_cast<APInt&>(*this));
return *this;
}
APSInt& operator--() {
static_cast<APInt&>(*this)--;
--(static_cast<APInt&>(*this));
return *this;
}
APSInt operator++(int) {