getPrimitiveSizeInBits returns 0 for pointers, we need to query
the size via DataLayout instead.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
| Paths 
 |  Differential  D135976  
[RISCV] Correct RISCVTTIImpl::getRegUsageForType for vectors of pointers. ClosedPublic Authored by craig.topper on Oct 14 2022, 11:04 AM. 
Details Summary getPrimitiveSizeInBits returns 0 for pointers, we need to query 
Diff Detail 
 Event TimelineThis revision is now accepted and ready to land.Oct 14 2022, 11:25 AM This revision was landed with ongoing or failed builds.Oct 14 2022, 11:34 AM Closed by commit rG44f0b13494ae: [RISCV] Correct RISCVTTIImpl::getRegUsageForType for vectors of pointers. (authored by craig.topper).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 467864 llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
 llvm/test/Transforms/LoopVectorize/RISCV/reg-usage.ll
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||