[PATCH] D61432: Non-8-bit bytes showcase
Bruno Ricci via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 2 07:18:36 PDT 2019
riccibruno added inline comments.
================
Comment at: include/llvm/IR/DataLayout.h:421
unsigned getPointerTypeSize(Type *Ty) const {
- return getPointerTypeSizeInBits(Ty) / 8;
+ return getPointerTypeSizeInBits(Ty) / BitsPerByte;
}
----------------
That's an expensive division...
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61432/new/
https://reviews.llvm.org/D61432
More information about the llvm-commits
mailing list