Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Simplifying the emitter handling of 4-byte encoded SSE instructions (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tannergooding authored Dec 14, 2018
1 parent bbfafe7 commit 813bd6e
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 108 deletions.
8 changes: 0 additions & 8 deletions src/jit/compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2489,14 +2489,6 @@ void Compiler::compSetProcessor()
codeGen->getEmitter()->SetContainsAVX(false);
codeGen->getEmitter()->SetContains256bitAVX(false);
}
else if (compSupports(InstructionSet_SSSE3) || compSupports(InstructionSet_AES) ||
compSupports(InstructionSet_PCLMULQDQ))
{
// Emitter::UseSSE4 controls whether we support the 4-byte encoding for certain
// instructions. We need to check if either is supported independently, since
// it is currently possible to enable/disable them separately.
codeGen->getEmitter()->SetUseSSE4(true);
}
}
#endif
#if defined(_TARGET_ARM64_)
Expand Down
1 change: 0 additions & 1 deletion src/jit/emit.h
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,6 @@ class emitter
#endif // DEBUG

#ifdef _TARGET_XARCH_
SetUseSSE4(false);
SetUseVEXEncoding(false);
#endif // _TARGET_XARCH_
}
Expand Down
Loading

0 comments on commit 813bd6e

Please sign in to comment.