diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-02-05 08:41:53 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-02-05 08:41:53 +0000 |
commit | 758d20f653302ca2fd64f2c13b501156525093d2 (patch) | |
tree | 773d71add7dde2db148b48739ccb2c65e4714e5e | |
parent | 4798bbeaf5a76a83f2aa923b0abc792e01ac3be7 (diff) | |
download | external_llvm-758d20f653302ca2fd64f2c13b501156525093d2.zip external_llvm-758d20f653302ca2fd64f2c13b501156525093d2.tar.gz external_llvm-758d20f653302ca2fd64f2c13b501156525093d2.tar.bz2 |
Clarify comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63851 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Target/TargetInstrDesc.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/llvm/Target/TargetInstrDesc.h b/include/llvm/Target/TargetInstrDesc.h index 2f6e00c..6a0a396 100644 --- a/include/llvm/Target/TargetInstrDesc.h +++ b/include/llvm/Target/TargetInstrDesc.h @@ -407,9 +407,10 @@ public: /// isAsCheapAsAMove - Returns true if this instruction has the same cost (or /// less) than a move instruction. This is useful during certain types of - /// rematerializations (e.g., during two-address conversion) where we would - /// like to remat the instruction, but not if it costs more than moving the - /// instruction into the appropriate register. + /// optimizations (e.g., remat during two-address conversion or machine licm) + /// where we would like to remat or hoist the instruction, but not if it costs + /// more than moving the instruction into the appropriate register. Note, we + /// are not marking copies from and to the same register class with this flag. bool isAsCheapAsAMove() const { return Flags & (1 << TID::CheapAsAMove); } |