From 8df4a03024a0039e9ef5123e8a36f8855e2887d1 Mon Sep 17 00:00:00 2001 From: William Chen Date: Tue, 6 Sep 2022 15:50:23 -0700 Subject: [PATCH] ssa preg copy return false if differIdx == -1 --- src/mapleall/maple_be/src/cg/aarch64/aarch64_prop.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mapleall/maple_be/src/cg/aarch64/aarch64_prop.cpp b/src/mapleall/maple_be/src/cg/aarch64/aarch64_prop.cpp index cf65ddf8ef..66f4ebe36c 100644 --- a/src/mapleall/maple_be/src/cg/aarch64/aarch64_prop.cpp +++ b/src/mapleall/maple_be/src/cg/aarch64/aarch64_prop.cpp @@ -2508,6 +2508,9 @@ bool A64PregCopyPattern::CheckPhiCaseCondition(Insn &defInsn) { return false; } } + if (differIdx == -1) { + return false; + } return true; } -- Gitee