aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-09-10 23:34:19 +0000
committerBill Wendling <isanbard@gmail.com>2010-09-10 23:34:19 +0000
commit92ad57f066e9f256e4e3d72febf152e68caa80c7 (patch)
tree1a95be27cf727d9b597de7d9d0f0dffb37686154 /include
parentd10cd7b31464a73e3a19b9fada80b9567b04d314 (diff)
downloadexternal_llvm-92ad57f066e9f256e4e3d72febf152e68caa80c7.zip
external_llvm-92ad57f066e9f256e4e3d72febf152e68caa80c7.tar.gz
external_llvm-92ad57f066e9f256e4e3d72febf152e68caa80c7.tar.bz2
Move some of the decision logic for converting an instruction into one that sets
the 'zero' bit down into the back-end. There are other cases where this logic isn't sufficient, so they should be handled separately. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113665 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetInstrInfo.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h
index f465201..c0baec3 100644
--- a/include/llvm/Target/TargetInstrInfo.h
+++ b/include/llvm/Target/TargetInstrInfo.h
@@ -585,11 +585,10 @@ public:
return false;
}
- /// ConvertToSetZeroFlag - Convert the instruction to set the zero flag so
- /// that we can remove a "comparison with zero". Update the iterator *only*
- /// if a transformation took place.
- virtual bool ConvertToSetZeroFlag(MachineInstr * /*Instr*/,
- MachineInstr * /*CmpInstr*/,
+ /// ConvertToSetZeroFlag - Convert the instruction supplying the argument to
+ /// the comparison into one that sets the zero bit in the flags
+ /// register. Update the iterator *only* if a transformation took place.
+ virtual bool ConvertToSetZeroFlag(MachineInstr * /*CmpInstr*/,
MachineBasicBlock::iterator &) const {
return false;
}