mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Add some constantness in Machine Dominators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175344 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7209987f26
commit
55ba691dce
@ -68,11 +68,13 @@ public:
|
||||
|
||||
virtual bool runOnMachineFunction(MachineFunction &F);
|
||||
|
||||
inline bool dominates(MachineDomTreeNode* A, MachineDomTreeNode* B) const {
|
||||
inline bool dominates(const MachineDomTreeNode* A,
|
||||
const MachineDomTreeNode* B) const {
|
||||
return DT->dominates(A, B);
|
||||
}
|
||||
|
||||
inline bool dominates(MachineBasicBlock* A, MachineBasicBlock* B) const {
|
||||
inline bool dominates(const MachineBasicBlock* A,
|
||||
const MachineBasicBlock* B) const {
|
||||
return DT->dominates(A, B);
|
||||
}
|
||||
|
||||
@ -97,12 +99,12 @@ public:
|
||||
}
|
||||
|
||||
inline bool properlyDominates(const MachineDomTreeNode* A,
|
||||
MachineDomTreeNode* B) const {
|
||||
const MachineDomTreeNode* B) const {
|
||||
return DT->properlyDominates(A, B);
|
||||
}
|
||||
|
||||
inline bool properlyDominates(MachineBasicBlock* A,
|
||||
MachineBasicBlock* B) const {
|
||||
inline bool properlyDominates(const MachineBasicBlock* A,
|
||||
const MachineBasicBlock* B) const {
|
||||
return DT->properlyDominates(A, B);
|
||||
}
|
||||
|
||||
@ -160,7 +162,7 @@ public:
|
||||
|
||||
/// isReachableFromEntry - Return true if A is dominated by the entry
|
||||
/// block of the function containing it.
|
||||
bool isReachableFromEntry(MachineBasicBlock *A) {
|
||||
bool isReachableFromEntry(const MachineBasicBlock *A) {
|
||||
return DT->isReachableFromEntry(A);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user