[PATCH] D145785: [AMDGPU][MachineVerifier] Fix vdata reg count for MIMG d16
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 10 05:32:10 PST 2023
foad accepted this revision.
foad added inline comments.
This revision is now accepted and ready to land.
================
Comment at: llvm/lib/Target/AMDGPU/SIInstrInfo.cpp:4349
if (D16 && D16->getImm() && !ST.hasUnpackedD16VMem())
- RegCount >>= 1;
+ RegCount = (RegCount + 1) >> 1;
----------------
Could use divideCeil from MathExtras.h if you prefer.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145785/new/
https://reviews.llvm.org/D145785
More information about the llvm-commits
mailing list