Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: src/IceTargetLoweringX8632Traits.h

Issue 1738443002: Subzero. Performance tweaks. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addresses comments -- all of them Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceTargetLoweringX8632.cpp ('k') | src/IceTargetLoweringX8664.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTargetLoweringX8632Traits.h
diff --git a/src/IceTargetLoweringX8632Traits.h b/src/IceTargetLoweringX8632Traits.h
index 2ff3d7aad0120aac45f787213d5a96f4ef631bbe..797b7318babea8d6871c8ebca9952b0d6fb0a327 100644
--- a/src/IceTargetLoweringX8632Traits.h
+++ b/src/IceTargetLoweringX8632Traits.h
@@ -453,19 +453,19 @@ private:
public:
static void initRegisterSet(
const ::Ice::ClFlags & /*Flags*/,
- std::array<llvm::SmallBitVector, RCX86_NUM> *TypeToRegisterSet,
- std::array<llvm::SmallBitVector, RegisterSet::Reg_NUM> *RegisterAliases) {
- llvm::SmallBitVector IntegerRegistersI32(RegisterSet::Reg_NUM);
- llvm::SmallBitVector IntegerRegistersI16(RegisterSet::Reg_NUM);
- llvm::SmallBitVector IntegerRegistersI8(RegisterSet::Reg_NUM);
- llvm::SmallBitVector FloatRegisters(RegisterSet::Reg_NUM);
- llvm::SmallBitVector VectorRegisters(RegisterSet::Reg_NUM);
- llvm::SmallBitVector Trunc64To8Registers(RegisterSet::Reg_NUM);
- llvm::SmallBitVector Trunc32To8Registers(RegisterSet::Reg_NUM);
- llvm::SmallBitVector Trunc16To8Registers(RegisterSet::Reg_NUM);
- llvm::SmallBitVector Trunc8RcvrRegisters(RegisterSet::Reg_NUM);
- llvm::SmallBitVector AhRcvrRegisters(RegisterSet::Reg_NUM);
- llvm::SmallBitVector InvalidRegisters(RegisterSet::Reg_NUM);
+ std::array<SmallBitVector, RCX86_NUM> *TypeToRegisterSet,
+ std::array<SmallBitVector, RegisterSet::Reg_NUM> *RegisterAliases) {
+ SmallBitVector IntegerRegistersI32(RegisterSet::Reg_NUM);
+ SmallBitVector IntegerRegistersI16(RegisterSet::Reg_NUM);
+ SmallBitVector IntegerRegistersI8(RegisterSet::Reg_NUM);
+ SmallBitVector FloatRegisters(RegisterSet::Reg_NUM);
+ SmallBitVector VectorRegisters(RegisterSet::Reg_NUM);
+ SmallBitVector Trunc64To8Registers(RegisterSet::Reg_NUM);
+ SmallBitVector Trunc32To8Registers(RegisterSet::Reg_NUM);
+ SmallBitVector Trunc16To8Registers(RegisterSet::Reg_NUM);
+ SmallBitVector Trunc8RcvrRegisters(RegisterSet::Reg_NUM);
+ SmallBitVector AhRcvrRegisters(RegisterSet::Reg_NUM);
+ SmallBitVector InvalidRegisters(RegisterSet::Reg_NUM);
static constexpr struct {
uint16_t Val;
@@ -539,11 +539,10 @@ public:
(*TypeToRegisterSet)[RCX86_IsAhRcvr] = AhRcvrRegisters;
}
- static llvm::SmallBitVector
- getRegisterSet(const ::Ice::ClFlags & /*Flags*/,
- TargetLowering::RegSetMask Include,
- TargetLowering::RegSetMask Exclude) {
- llvm::SmallBitVector Registers(RegisterSet::Reg_NUM);
+ static SmallBitVector getRegisterSet(const ::Ice::ClFlags & /*Flags*/,
+ TargetLowering::RegSetMask Include,
+ TargetLowering::RegSetMask Exclude) {
+ SmallBitVector Registers(RegisterSet::Reg_NUM);
#define X(val, encode, name, base, scratch, preserved, stackptr, frameptr, \
isGPR, is64, is32, is16, is8, isXmm, is64To8, is32To8, is16To8, \
@@ -575,7 +574,7 @@ public:
static void
makeRandomRegisterPermutation(GlobalContext *Ctx, Cfg *Func,
llvm::SmallVectorImpl<RegNumT> &Permutation,
- const llvm::SmallBitVector &ExcludeRegisters,
+ const SmallBitVector &ExcludeRegisters,
uint64_t Salt) {
// TODO(stichnot): Declaring Permutation this way loses type/size
// information. Fix this in conjunction with the caller-side TODO.
« no previous file with comments | « src/IceTargetLoweringX8632.cpp ('k') | src/IceTargetLoweringX8664.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698