Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix uses of TARGET macros. #1

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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