projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Generates conditional branch instead of fake ones for Select instruction in some...
[oota-llvm.git]
/
include
/
llvm
/
CodeGen
/
MachineBasicBlock.h
diff --git
a/include/llvm/CodeGen/MachineBasicBlock.h
b/include/llvm/CodeGen/MachineBasicBlock.h
index 3d58c499823e86725e9263a79d29830acd4eae26..fd786f68fb653b240015fd7cb58d351470dc50f6 100644
(file)
--- a/
include/llvm/CodeGen/MachineBasicBlock.h
+++ b/
include/llvm/CodeGen/MachineBasicBlock.h
@@
-124,6
+124,10
@@
private:
/// is only computed once and is cached.
mutable MCSymbol *CachedMCSymbol = nullptr;
/// is only computed once and is cached.
mutable MCSymbol *CachedMCSymbol = nullptr;
+ // XXX-update: A flag that checks whether we can eliminate this machine basic
+ // block.
+ bool canEliminateMachineBB;
+
// Intrusive list support
MachineBasicBlock() {}
// Intrusive list support
MachineBasicBlock() {}
@@
-135,6
+139,15
@@
private:
friend class MachineFunction;
public:
friend class MachineFunction;
public:
+ // XXX-update:
+ void disableCanEliminateMachineBB() {
+ canEliminateMachineBB = false;
+ }
+
+ bool getCanEliminateMachineBB() {
+ return canEliminateMachineBB;
+ }
+
/// Return the LLVM basic block that this instance corresponded to originally.
/// Note that this may be NULL if this instance does not correspond directly
/// to an LLVM basic block.
/// Return the LLVM basic block that this instance corresponded to originally.
/// Note that this may be NULL if this instance does not correspond directly
/// to an LLVM basic block.