[midend-GVN]修复GVN中部分逻辑问题,LICM有bug待修复

This commit is contained in:
rain2133
2025-08-17 00:14:47 +08:00
parent c4eb1c3980
commit e32585fd25
3 changed files with 49 additions and 6 deletions

View File

@ -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);
};