mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-03 14:21:30 +00:00 
			
		
		
		
	Replace the use of isPredicable() with isPredicated() in
MachineBasicBlock::canFallThrough(). We're interested in the state of the instruction (i.e., is this a barrier or not?), not if the instruction is predicable or not. rdar://10501092 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149070 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		@@ -535,13 +535,12 @@ bool MachineBasicBlock::canFallThrough() {
 | 
			
		||||
  if (TII->AnalyzeBranch(*this, TBB, FBB, Cond)) {
 | 
			
		||||
    // If we couldn't analyze the branch, examine the last instruction.
 | 
			
		||||
    // If the block doesn't end in a known control barrier, assume fallthrough
 | 
			
		||||
    // is possible. The isPredicable check is needed because this code can be
 | 
			
		||||
    // is possible. The isPredicated check is needed because this code can be
 | 
			
		||||
    // called during IfConversion, where an instruction which is normally a
 | 
			
		||||
    // Barrier is predicated and thus no longer an actual control barrier. This
 | 
			
		||||
    // is over-conservative though, because if an instruction isn't actually
 | 
			
		||||
    // predicated we could still treat it like a barrier.
 | 
			
		||||
    return empty() || !back().isBarrier() ||
 | 
			
		||||
           back().isPredicable();
 | 
			
		||||
    return empty() || !back().isBarrier() || TII->isPredicated(&back());
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // If there is no branch, control always falls through.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user