[llvm] [RISCV][NFC] Use !range bang operator (PR #66494)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 26 22:47:02 PDT 2023


================
@@ -416,12 +416,11 @@ class VRegList<list<dag> LIn, int start, int nf, int lmul, bit isV0> {
 }
 
 // Vector registers
-foreach Index = 0-31 in {
+foreach Index = !range(0, 32, 1) in {
----------------
topperc wrote:

Why is this better?

https://github.com/llvm/llvm-project/pull/66494


More information about the llvm-commits mailing list