Skip to content

Commit

Permalink
Fix uses of TARGET macros.
Browse files Browse the repository at this point in the history
  • Loading branch information
erozenfeld authored and jakobbotsch committed Mar 6, 2020
1 parent 08a44e4 commit 0b7e464
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/coreclr/src/jit/gentree.h
Original file line number Diff line number Diff line change
Expand Up @@ -4091,7 +4091,7 @@ struct GenTreeCall final : public GenTree
// tailcall mechanism.
bool IsTailCallViaJitHelper() const
{
#ifdef _TARGET_X86_
#ifdef TARGET_X86
return IsTailCall() && (gtCallMoreFlags & GTF_CALL_M_TAILCALL_VIA_JIT_HELPER);
#else
return false;
Expand All @@ -4101,7 +4101,7 @@ struct GenTreeCall final : public GenTree
#if FEATURE_FASTTAILCALL
bool IsFastTailCall() const
{
#ifdef _TARGET_X86_
#ifdef TARGET_X86
return IsTailCall() && !(gtCallMoreFlags & GTF_CALL_M_TAILCALL_VIA_JIT_HELPER);
#else
return IsTailCall();
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/src/jit/lclvars.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4901,7 +4901,7 @@ void Compiler::lvaFixVirtualFrameOffsets()

#endif // FEATURE_FIXED_OUT_ARGS

#ifdef _TARGET_ARM64_
#ifdef TARGET_ARM64
// We normally add alignment below the locals between them and the outgoing
// arg space area. When we store fp/lr at the bottom, however, this will be
// below the alignment. So we should not apply the alignment adjustment to
Expand Down
4 changes: 2 additions & 2 deletions src/coreclr/src/jit/morph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6766,7 +6766,7 @@ bool Compiler::fgCanFastTailCall(GenTreeCall* callee, const char** failReason)
return false;
}

#ifdef _TARGET_AMD64_
#ifdef TARGET_AMD64
// Needed for Jit64 compat.
// In future, enabling fast tail calls from methods that need GS cookie
// check would require codegen side work to emit GS cookie check before a
Expand Down Expand Up @@ -17945,7 +17945,7 @@ bool Compiler::fgCheckStmtAfterTailCall()
//
bool Compiler::fgCanTailCallViaJitHelper()
{
#ifndef _TARGET_X86_
#ifndef TARGET_X86
// On anything except X86 we have no faster mechanism available.
return false;
#else
Expand Down

0 comments on commit 0b7e464

Please sign in to comment.