[midend-LoopAnalysis]修复循环规范遍bug,修正部分打印格式,

This commit is contained in:
rain2133
2025-08-12 12:34:07 +08:00
parent 8cb807c8b9
commit 70f6a25ebc
4 changed files with 20 additions and 14 deletions

View File

@@ -762,7 +762,7 @@ void BinaryInst::print(std::ostream &os) const {
printOperand(os, getLhs());
os << ", ";
printOperand(os, getRhs());
os << "\n ";
os << "\n ";
printVarName(os, this) << " = zext i1 %" << tmpName << " to i32";
} else if (kind == kFCmpEQ || kind == kFCmpNE || kind == kFCmpLT ||
kind == kFCmpGT || kind == kFCmpLE || kind == kFCmpGE) {
@@ -777,7 +777,7 @@ void BinaryInst::print(std::ostream &os) const {
printOperand(os, getLhs());
os << ", ";
printOperand(os, getRhs());
os << "\n ";
os << "\n ";
printVarName(os, this) << " = zext i1 %" << tmpName << " to i32";
} else {
// 算术和逻辑指令