[PATCH] D116584: [RISCV] Block vmsgeu.vi with 0 immediate in Isel
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 6 22:22:42 PST 2022
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp:830
+ if (CVal >= -15 && CVal <= 16) {
+ if (IsUnsigned && CVal == 0)
+ IsCmpUnsignedZero = true;
----------------
```
if (!IsUnsigned || CVal != 0)
break;
IsCmpUnsignedZero = true;
```
================
Comment at: llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp:890
+ if (CVal >= -15 && CVal <= 16) {
+ if (IsUnsigned && CVal == 0)
+ IsCmpUnsignedZero = true;
----------------
Same
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116584/new/
https://reviews.llvm.org/D116584
More information about the llvm-commits
mailing list