HomePhabricator

[llvm][Type] Return fixed size for scalar types. [NFC]

Authored by fpetrogalli on Mar 27 2020, 2:41 PM.

Description

[llvm][Type] Return fixed size for scalar types. [NFC]

Summary:
It is safe to assume that the TypeSize associated to scalar types has
a fixed size.

This avoids an implicit cast of TypeSize to integer inside
Type::getScalarSizeInBits(), as such implicit cast is deprecated.

Reviewers: efriedma, sdesmalen

Reviewed By: efriedma

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D76892

Details

Committed
fpetrogalliMar 27 2020, 3:23 PM
Reviewer
efriedma
Differential Revision
D76892: [llvm][Type] Return fixed size for scalar types. [NFC]
Parents
rG9ce198d6ed37: [Darwin] Respect -fno-unroll-loops during LTO.
Branches
Unknown
Tags
Unknown