projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reverts wrong modification to MachineBlockPlacement & BranchFolding; uses a new strat...
[oota-llvm.git]
/
include
/
llvm
/
CodeGen
/
MachineInstr.h
diff --git
a/include/llvm/CodeGen/MachineInstr.h
b/include/llvm/CodeGen/MachineInstr.h
index 05c9a9e0b07961a7afdb47980332da1fa0b3494d..3e76ea9c31dd7f5e082962855a7338b1d9441686 100644
(file)
--- a/
include/llvm/CodeGen/MachineInstr.h
+++ b/
include/llvm/CodeGen/MachineInstr.h
@@
-71,6
+71,9
@@
public:
BundledSucc = 1 << 3 // Instruction has bundled successors.
};
private:
BundledSucc = 1 << 3 // Instruction has bundled successors.
};
private:
+ // XXX-update: A flag that checks whether we can eliminate this instruction.
+ bool canEliminateMachineInstr;
+
const MCInstrDesc *MCID; // Instruction descriptor.
MachineBasicBlock *Parent; // Pointer to the owning basic block.
const MCInstrDesc *MCID; // Instruction descriptor.
MachineBasicBlock *Parent; // Pointer to the owning basic block.
@@
-126,6
+129,15
@@
private:
friend class MachineFunction;
public:
friend class MachineFunction;
public:
+ // XXX-update:
+ void disableCanEliminateMachineInstr() {
+ canEliminateMachineInstr = false;
+ }
+
+ bool getCanEliminateMachineInstr() {
+ return canEliminateMachineInstr;
+ }
+
const MachineBasicBlock* getParent() const { return Parent; }
MachineBasicBlock* getParent() { return Parent; }
const MachineBasicBlock* getParent() const { return Parent; }
MachineBasicBlock* getParent() { return Parent; }