mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-30 16:17:05 +00:00 
			
		
		
		
	It's safe to sink some instructions which are not safe to speculatively
execute. Make Sink's predicate more precise. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118787 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		| @@ -169,7 +169,10 @@ static bool isSafeToMove(Instruction *Inst, AliasAnalysis *AA, | |||||||
|     return false; |     return false; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   return Inst->isSafeToSpeculativelyExecute(); |   if (isa<TerminatorInst>(Inst) || isa<PHINode>(Inst)) | ||||||
|  |     return false; | ||||||
|  |  | ||||||
|  |   return true; | ||||||
| } | } | ||||||
|  |  | ||||||
| /// SinkInstruction - Determine whether it is safe to sink the specified machine | /// SinkInstruction - Determine whether it is safe to sink the specified machine | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user