[midend-GVN]修复GVN中部分逻辑问题,LICM有bug待修复
This commit is contained in:
@ -59,6 +59,9 @@ private:
|
||||
// 检查两个load指令之间是否有store指令修改了相同的内存位置
|
||||
bool hasInterveningStore(LoadInst* earlierLoad, LoadInst* laterLoad, Value* ptr);
|
||||
|
||||
// 使受store指令影响的load指令失效
|
||||
void invalidateLoadsAffectedByStore(StoreInst* storeInst);
|
||||
|
||||
// 生成表达式的标准化字符串
|
||||
std::string getCanonicalExpression(Instruction* inst);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user