[PATCH] D12371: Expose hasLiveCondCodeDef as a member function of the X86InstrInfo class. NFC
Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 26 13:37:57 PDT 2015
This revision was automatically updated to reflect the committed changes.
Closed by commit rL246073: Expose hasLiveCondCodeDef as a member function of the X86InstrInfo class. NFC (authored by akaylor).
Changed prior to commit:
http://reviews.llvm.org/D12371?vs=33218&id=33242#toc
Repository:
rL LLVM
http://reviews.llvm.org/D12371
Files:
llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
llvm/trunk/lib/Target/X86/X86InstrInfo.h
Index: llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
===================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
@@ -2431,7 +2431,7 @@
}
/// True if MI has a condition code def, e.g. EFLAGS, that is not marked dead.
-static bool hasLiveCondCodeDef(MachineInstr *MI) {
+bool X86InstrInfo::hasLiveCondCodeDef(MachineInstr *MI) const {
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
MachineOperand &MO = MI->getOperand(i);
if (MO.isReg() && MO.isDef() &&
Index: llvm/trunk/lib/Target/X86/X86InstrInfo.h
===================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.h
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.h
@@ -401,6 +401,10 @@
bool isSafeToClobberEFLAGS(MachineBasicBlock &MBB,
MachineBasicBlock::iterator I) const;
+ /// True if MI has a condition code def, e.g. EFLAGS, that is
+ /// not marked dead.
+ bool hasLiveCondCodeDef(MachineInstr *MI) const;
+
static bool isX86_64ExtendedReg(const MachineOperand &MO) {
if (!MO.isReg()) return false;
return X86II::isX86_64ExtendedReg(MO.getReg());
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12371.33242.patch
Type: text/x-patch
Size: 1229 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150826/b1d67ce4/attachment.bin>
More information about the llvm-commits
mailing list