Skip to content

Commit d3bcd23

Browse files
Add APX knob
1 parent 2486c13 commit d3bcd23

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/coreclr/jit/compiler.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9887,6 +9887,12 @@ class Compiler
98879887
//
98889888
bool canUseApxEncoding() const
98899889
{
9890+
#ifdef DEBUG
9891+
if (JitConfig.JitBypassApxCheck())
9892+
{
9893+
return true;
9894+
}
9895+
#endif
98909896
return compOpportunisticallyDependsOn(InstructionSet_APX);
98919897
}
98929898

src/coreclr/jit/jitconfigvalues.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ RELEASE_CONFIG_INTEGER(JitNoInline, "JitNoInline", 0)
374374

375375
#if defined(DEBUG)
376376
CONFIG_INTEGER(JitStressRex2Encoding, "JitStressRex2Encoding", 0) // Enable rex2 encoding for compatible instructions.
377+
CONFIG_INTEGER(JitBypassApxCheck, "JitBypassApxCheck", 0)
377378
CONFIG_INTEGER(JitStressPromotedEvexEncoding, "JitStressPromotedEvexEncoding", 0) // Enable promoted EVEX encoding for
378379
// compatible instructions.
379380
#endif
@@ -449,6 +450,7 @@ RELEASE_CONFIG_INTEGER(EnableEmbeddedBroadcast, "EnableEmbeddedBroadcast",
449450
RELEASE_CONFIG_INTEGER(EnableEmbeddedMasking, "EnableEmbeddedMasking", 1) // Allows embedded masking to be disabled
450451
RELEASE_CONFIG_INTEGER(EnableApxNDD, "EnableApxNDD", 0) // Allows APX NDD feature to be disabled
451452
RELEASE_CONFIG_INTEGER(EnableApxConditionalChaining, "EnableApxConditionalChaining", 0) // Allows APX conditional compare chaining
453+
RELEASE_CONFIG_INTEGER(EnableApxPPX, "EnableApxPPX", 0) // Allows APX PPX feature to be disabled
452454

453455
// clang-format on
454456

0 commit comments

Comments
 (0)