aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJu-Zhe Zhong <juzhe.zhong@rivai.ai>2023-01-03 15:11:59 +0800
committerKito Cheng <kito.cheng@sifive.com>2023-01-27 02:53:00 +0800
commit011ba384b343e99bb86eb3ac86c7628c4cd98f8b (patch)
tree5c38279acc4a6987d79b7f94cad614d9561f8c33 /gcc
parent005fad9d251b7ce6c009b646e213fbbf8d43a02b (diff)
downloadgcc-011ba384b343e99bb86eb3ac86c7628c4cd98f8b.zip
gcc-011ba384b343e99bb86eb3ac86c7628c4cd98f8b.tar.gz
gcc-011ba384b343e99bb86eb3ac86c7628c4cd98f8b.tar.bz2
RISC-V: Fix wrong in_group flag in validate_change call function
Since we only change insn which is not in group. The flag currently is not correct. gcc/ChangeLog: * config/riscv/riscv-vsetvl.cc (change_insn): Adjust in_group in validate_change.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/riscv/riscv-vsetvl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/riscv/riscv-vsetvl.cc b/gcc/config/riscv/riscv-vsetvl.cc
index 3b84db3..7933644 100644
--- a/gcc/config/riscv/riscv-vsetvl.cc
+++ b/gcc/config/riscv/riscv-vsetvl.cc
@@ -787,7 +787,7 @@ change_insn (rtx_insn *rinsn, rtx new_pat)
print_rtl_single (dump_file, PATTERN (rinsn));
}
- validate_change (rinsn, &PATTERN (rinsn), new_pat, true);
+ validate_change (rinsn, &PATTERN (rinsn), new_pat, false);
if (dump_file)
{