[PATCH] D153106: [CSKY] Optimize multiplication with immediates

Zixuan Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 19 19:55:40 PDT 2023


zixuan-wu added inline comments.


================
Comment at: llvm/lib/Target/CSKY/CSKYSubtarget.h:210
+
+  unsigned getDataSizeInBits() const { return 32; }
 };
----------------
I think the name getDataSizeInBits is not precise about target machine. 

```
static const unsigned XLEN = 32;
```

may be better?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D153106/new/

https://reviews.llvm.org/D153106



More information about the llvm-commits mailing list