mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-03 14:21:30 +00:00 
			
		
		
		
	Added CanBeDuplicated(). It returns true if an instruction can be safely duplicated (e.g. during ifcvt).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37605 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		@@ -415,6 +415,13 @@ public:
 | 
				
			|||||||
    return false;
 | 
					    return false;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  /// CanBeDuplicated - Returns true if the instruction can be duplicated
 | 
				
			||||||
 | 
					  /// without causing unforseenable side-effect (e.g. instructions with unique
 | 
				
			||||||
 | 
					  /// labels attached).
 | 
				
			||||||
 | 
					  virtual bool CanBeDuplicated(const MachineInstr *MI) const {
 | 
				
			||||||
 | 
					    return false;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /// isUnpredicatedTerminator - Returns true if the instruction is a
 | 
					  /// isUnpredicatedTerminator - Returns true if the instruction is a
 | 
				
			||||||
  /// terminator instruction that has not been predicated.
 | 
					  /// terminator instruction that has not been predicated.
 | 
				
			||||||
  virtual bool isUnpredicatedTerminator(const MachineInstr *MI) const;
 | 
					  virtual bool isUnpredicatedTerminator(const MachineInstr *MI) const;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user