diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-01-05 23:31:08 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-01-05 23:31:08 +0000 |
commit | 257464a07272a74b772d03fca31617cd3a1826db (patch) | |
tree | 02ebf363cee3a4eeadfd5115a8be13ba8957c8df /include/llvm/Target/TargetLowering.h | |
parent | cde53d3c1e9d6a2add5de847b44818fbb1d69c20 (diff) | |
download | external_llvm-257464a07272a74b772d03fca31617cd3a1826db.zip external_llvm-257464a07272a74b772d03fca31617cd3a1826db.tar.gz external_llvm-257464a07272a74b772d03fca31617cd3a1826db.tar.bz2 |
- 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
Diffstat (limited to 'include/llvm/Target/TargetLowering.h')
-rw-r--r-- | include/llvm/Target/TargetLowering.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 2a353ba..0f481bb 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -89,9 +89,9 @@ public: /// codegen. 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. - bool isSetCCExpensive() const { return SetCCIsExpensive; } + bool isSelectExpensive() const { return SelectIsExpensive; } /// isIntDivCheap() - Return true if integer divide is usually cheaper than /// a sequence of several shifts, adds, and multiplies for this target. @@ -608,10 +608,9 @@ protected: StackPointerRegisterToSaveRestore = R; } - /// setSetCCIxExpensive - This is a short term hack for targets that codegen - /// setcc as a conditional branch. This encourages the code generator to fold - /// setcc operations into other operations if possible. - void setSetCCIsExpensive() { SetCCIsExpensive = true; } + /// SelectIsExpensive - Tells the code generator not to expand operations + /// into sequences that use the select operations if possible. + void setSelectIsExpensive() { SelectIsExpensive = true; } /// setIntDivIsCheap - Tells the code generator that integer divide is /// expensive, and if possible, should be replaced by an alternate sequence @@ -890,10 +889,9 @@ private: OutOfRangeShiftAmount ShiftAmtHandling; - /// SetCCIsExpensive - This is a short term hack for targets that codegen - /// setcc as a conditional branch. This encourages the code generator to fold - /// setcc operations into other operations if possible. - bool SetCCIsExpensive; + /// SelectIsExpensive - Tells the code generator not to expand operations + /// into sequences that use the select operations if possible. + bool SelectIsExpensive; /// 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 |