mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-05 14:34:55 +00:00
- Remove isSetCCExpensive() etc. These are no longer used.
- Add isSelectExpensive() etc. It's used to tell codegen that select is expensive for a given target, avoid using it if possible. Currently it's only used to expand FCOPYSIGN. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32939 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cde53d3c1e
commit
257464a072
@ -89,9 +89,9 @@ public:
|
|||||||
/// codegen.
|
/// codegen.
|
||||||
bool usesGlobalOffsetTable() const { return UsesGlobalOffsetTable; }
|
bool usesGlobalOffsetTable() const { return UsesGlobalOffsetTable; }
|
||||||
|
|
||||||
/// isSetCCExpensive - Return true if the setcc operation is expensive for
|
/// isSelectExpensive - Return true if the select operation is expensive for
|
||||||
/// this target.
|
/// this target.
|
||||||
bool isSetCCExpensive() const { return SetCCIsExpensive; }
|
bool isSelectExpensive() const { return SelectIsExpensive; }
|
||||||
|
|
||||||
/// isIntDivCheap() - Return true if integer divide is usually cheaper than
|
/// isIntDivCheap() - Return true if integer divide is usually cheaper than
|
||||||
/// a sequence of several shifts, adds, and multiplies for this target.
|
/// a sequence of several shifts, adds, and multiplies for this target.
|
||||||
@ -608,10 +608,9 @@ protected:
|
|||||||
StackPointerRegisterToSaveRestore = R;
|
StackPointerRegisterToSaveRestore = R;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// setSetCCIxExpensive - This is a short term hack for targets that codegen
|
/// SelectIsExpensive - Tells the code generator not to expand operations
|
||||||
/// setcc as a conditional branch. This encourages the code generator to fold
|
/// into sequences that use the select operations if possible.
|
||||||
/// setcc operations into other operations if possible.
|
void setSelectIsExpensive() { SelectIsExpensive = true; }
|
||||||
void setSetCCIsExpensive() { SetCCIsExpensive = true; }
|
|
||||||
|
|
||||||
/// setIntDivIsCheap - Tells the code generator that integer divide is
|
/// setIntDivIsCheap - Tells the code generator that integer divide is
|
||||||
/// expensive, and if possible, should be replaced by an alternate sequence
|
/// expensive, and if possible, should be replaced by an alternate sequence
|
||||||
@ -890,10 +889,9 @@ private:
|
|||||||
|
|
||||||
OutOfRangeShiftAmount ShiftAmtHandling;
|
OutOfRangeShiftAmount ShiftAmtHandling;
|
||||||
|
|
||||||
/// SetCCIsExpensive - This is a short term hack for targets that codegen
|
/// SelectIsExpensive - Tells the code generator not to expand operations
|
||||||
/// setcc as a conditional branch. This encourages the code generator to fold
|
/// into sequences that use the select operations if possible.
|
||||||
/// setcc operations into other operations if possible.
|
bool SelectIsExpensive;
|
||||||
bool SetCCIsExpensive;
|
|
||||||
|
|
||||||
/// IntDivIsCheap - Tells the code generator not to expand integer divides by
|
/// IntDivIsCheap - Tells the code generator not to expand integer divides by
|
||||||
/// constants into a sequence of muls, adds, and shifts. This is a hack until
|
/// constants into a sequence of muls, adds, and shifts. This is a hack until
|
||||||
|
Loading…
x
Reference in New Issue
Block a user