mirror of
				https://github.com/intel/intel-graphics-compiler.git
				synced 2025-10-30 08:18:26 +08:00 
			
		
		
		
	Fix promotion of SLM pointer for opaque pointers
Now we can have CmpInst as the user of the SLM pointer. Previously there was always a bitcast in between.
This commit is contained in:
		| @ -335,6 +335,9 @@ bool GenIRLowering::runOnFunction(Function &F) { | ||||
|       } else if (CallInst *CI = dyn_cast<CallInst>(Inst)) { | ||||
|         CI->replaceUsesOfWith(V, NewBase); | ||||
|         Changed = true; | ||||
|       } else if (CmpInst *CI = dyn_cast<CmpInst>(Inst)) { | ||||
|         CI->replaceUsesOfWith(V, NewBase); | ||||
|         Changed = true; | ||||
|       } | ||||
|     } | ||||
|   } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Kochetkov Eugene
					Kochetkov Eugene