Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp | ||
---|---|---|
379 | ture -> true | |
382 | Wouldn't the lack of tied operand for those indicate they weren't masked. What if we did bool MaskAgnostic = true; if (MI.isRegTiedToUseOperand(0, &UseOpIdx)) { MaskAgnostic = RISCVII::hasDummyMaskOp(TSFlags); } | |
384 | Doesn't have hasDummyMaskOp return a bool? We shouldn't need a conditional operator. |
LGTM but there are test failures. Is that just a whole load of mu->ma changes that have been omitted for a smaller diff?
llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp | ||
---|---|---|
379 | nit, but purely from a code layout and comment perspective this MaskAgnostic is in the middle of two "Tail" variables. Also the "tail" variables are well-commented ahead of time but the "mask" logic is only commented on inside the if statement below. It just looks a bit imbalanced. I'm wondering if it'd be better there was even something simple like "Default to mask agnostic unless the operation is masked and the destination is tied to a source." | |
412 | nit: maybe we don't need /*TailAgnostic*/ or /*MaskAgnostic*/ anymore? | |
llvm/test/CodeGen/RISCV/rvv/maskedoff-undef.ll | ||
4 | I don't think we're typically using --riscv-no-aliases in our CodeGen tests? |
llvm/test/CodeGen/RISCV/rvv/maskedoff-undef.ll | ||
---|---|---|
4 | We were at one point using that on rvv tests, but I think it's been removed now. |
Hmm, unsure, the test changes are pretty much unreviewable given how large the diff would be. There's nothing unexpected in there, presumably?
ture -> true