[llvm] [RISC-V] Add another missing cast in .td file (PR #85055)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 13 03:29:27 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-risc-v
Author: Nemanja Ivanovic (nemanjai)
<details>
<summary>Changes</summary>
Another instance where we produce an instruction that defines a vreg with an i32 value.
---
Full diff: https://github.com/llvm/llvm-project/pull/85055.diff
1 Files Affected:
- (modified) llvm/lib/Target/RISCV/RISCVInstrInfo.td (+2-1)
``````````diff
diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfo.td b/llvm/lib/Target/RISCV/RISCVInstrInfo.td
index e753c1f1add0c6..966cdc433d0fd4 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfo.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfo.td
@@ -1405,7 +1405,8 @@ multiclass BccPat<CondCode Cond, RVInstB Inst> {
class BrccCompressOpt<CondCode Cond, RVInstB Inst>
: Pat<(riscv_brcc GPR:$lhs, simm12_no6:$Constant, Cond, bb:$place),
- (Inst (ADDI GPR:$lhs, (NegImm simm12:$Constant)), (XLenVT X0), bb:$place)>;
+ (Inst (XLenVT (ADDI GPR:$lhs, (NegImm simm12:$Constant))),
+ (XLenVT X0), bb:$place)>;
defm : BccPat<SETEQ, BEQ>;
defm : BccPat<SETNE, BNE>;
``````````
</details>
https://github.com/llvm/llvm-project/pull/85055
More information about the llvm-commits
mailing list