mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-15 09:33:39 +00:00
Revert r167620; this can be implemented using an existing CL option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167622 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d054eda441
commit
b3235b128f
@ -48,10 +48,10 @@ namespace llvm {
|
|||||||
UseSoftFloat(false), NoZerosInBSS(false), JITExceptionHandling(false),
|
UseSoftFloat(false), NoZerosInBSS(false), JITExceptionHandling(false),
|
||||||
JITEmitDebugInfo(false), JITEmitDebugInfoToDisk(false),
|
JITEmitDebugInfo(false), JITEmitDebugInfoToDisk(false),
|
||||||
GuaranteedTailCallOpt(false), DisableTailCalls(false),
|
GuaranteedTailCallOpt(false), DisableTailCalls(false),
|
||||||
StackAlignmentOverride(0), RealignStack(true), StrictAlign(false),
|
StackAlignmentOverride(0), RealignStack(true), EnableFastISel(false),
|
||||||
EnableFastISel(false), PositionIndependentExecutable(false),
|
PositionIndependentExecutable(false), EnableSegmentedStacks(false),
|
||||||
EnableSegmentedStacks(false), UseInitArray(false), TrapFuncName(""),
|
UseInitArray(false), TrapFuncName(""), FloatABIType(FloatABI::Default),
|
||||||
FloatABIType(FloatABI::Default), AllowFPOpFusion(FPOpFusion::Standard)
|
AllowFPOpFusion(FPOpFusion::Standard)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
/// PrintMachineCode - This flag is enabled when the -print-machineinstrs
|
/// PrintMachineCode - This flag is enabled when the -print-machineinstrs
|
||||||
@ -155,10 +155,6 @@ namespace llvm {
|
|||||||
/// automatically realigned, if needed.
|
/// automatically realigned, if needed.
|
||||||
unsigned RealignStack : 1;
|
unsigned RealignStack : 1;
|
||||||
|
|
||||||
/// StrictAlign - This flag indicates that all memory accesses must be
|
|
||||||
/// aligned. (ARM only)
|
|
||||||
unsigned StrictAlign : 1;
|
|
||||||
|
|
||||||
/// SSPBufferSize - The minimum size of buffers that will receive stack
|
/// SSPBufferSize - The minimum size of buffers that will receive stack
|
||||||
/// smashing protection when -fstack-protection is used.
|
/// smashing protection when -fstack-protection is used.
|
||||||
unsigned SSPBufferSize;
|
unsigned SSPBufferSize;
|
||||||
|
@ -1028,8 +1028,7 @@ bool ARMFastISel::ARMEmitLoad(EVT VT, unsigned &ResultReg, Address &Addr,
|
|||||||
RC = &ARM::GPRRegClass;
|
RC = &ARM::GPRRegClass;
|
||||||
break;
|
break;
|
||||||
case MVT::i16:
|
case MVT::i16:
|
||||||
if (Alignment && Alignment < 2 && (!Subtarget->allowsUnalignedMem() ||
|
if (Alignment && Alignment < 2 && !Subtarget->allowsUnalignedMem())
|
||||||
TM.Options.StrictAlign))
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (isThumb2) {
|
if (isThumb2) {
|
||||||
@ -1044,8 +1043,7 @@ bool ARMFastISel::ARMEmitLoad(EVT VT, unsigned &ResultReg, Address &Addr,
|
|||||||
RC = &ARM::GPRRegClass;
|
RC = &ARM::GPRRegClass;
|
||||||
break;
|
break;
|
||||||
case MVT::i32:
|
case MVT::i32:
|
||||||
if (Alignment && Alignment < 4 && (!Subtarget->allowsUnalignedMem() ||
|
if (Alignment && Alignment < 4 && !Subtarget->allowsUnalignedMem())
|
||||||
TM.Options.StrictAlign))
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (isThumb2) {
|
if (isThumb2) {
|
||||||
@ -1154,8 +1152,7 @@ bool ARMFastISel::ARMEmitStore(EVT VT, unsigned SrcReg, Address &Addr,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MVT::i16:
|
case MVT::i16:
|
||||||
if (Alignment && Alignment < 2 && (!Subtarget->allowsUnalignedMem() ||
|
if (Alignment && Alignment < 2 && !Subtarget->allowsUnalignedMem())
|
||||||
TM.Options.StrictAlign))
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (isThumb2) {
|
if (isThumb2) {
|
||||||
@ -1169,8 +1166,7 @@ bool ARMFastISel::ARMEmitStore(EVT VT, unsigned SrcReg, Address &Addr,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MVT::i32:
|
case MVT::i32:
|
||||||
if (Alignment && Alignment < 4 && (!Subtarget->allowsUnalignedMem() ||
|
if (Alignment && Alignment < 4 && !Subtarget->allowsUnalignedMem())
|
||||||
TM.Options.StrictAlign))
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (isThumb2) {
|
if (isThumb2) {
|
||||||
|
@ -9119,8 +9119,7 @@ bool ARMTargetLowering::isDesirableToTransformToIntegerOp(unsigned Opc,
|
|||||||
|
|
||||||
bool ARMTargetLowering::allowsUnalignedMemoryAccesses(EVT VT) const {
|
bool ARMTargetLowering::allowsUnalignedMemoryAccesses(EVT VT) const {
|
||||||
// The AllowsUnaliged flag models the SCTLR.A setting in ARM cpus
|
// The AllowsUnaliged flag models the SCTLR.A setting in ARM cpus
|
||||||
bool AllowsUnaligned = Subtarget->allowsUnalignedMem() &&
|
bool AllowsUnaligned = Subtarget->allowsUnalignedMem();
|
||||||
!getTargetMachine().Options.StrictAlign;
|
|
||||||
|
|
||||||
switch (VT.getSimpleVT().SimpleTy) {
|
switch (VT.getSimpleVT().SimpleTy) {
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user