[all-commits] [llvm/llvm-project] 3be907: [RISCV] Fix incorrect optimization for masked vmsg...
Zakk Chen via All-commits
all-commits at lists.llvm.org
Sun Mar 6 19:23:15 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3be907621f158f3937e6a6c5fbf45a4b6cd6a414
https://github.com/llvm/llvm-project/commit/3be907621f158f3937e6a6c5fbf45a4b6cd6a414
Author: Zakk Chen <zakk.chen at sifive.com>
Date: 2022-03-06 (Sun, 06 Mar 2022)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
M llvm/test/CodeGen/RISCV/rvv/vmsgeu-rv32.ll
M llvm/test/CodeGen/RISCV/rvv/vmsgeu-rv64.ll
Log Message:
-----------
[RISCV] Fix incorrect optimization for masked vmsgeu.vi with 0 immediate.
vmsgeu.vi with 0 is always true, but in the masked with mask undisturbed
policy, we still need to keep inactive elelemt which come from maskedoff.
We could return mask directly if it's mask agnostic policy in the future.
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D121080
More information about the All-commits
mailing list