mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +00:00
Use getStoreSize() instead of getStoreSizeInBits()/8. NFC.
The calls here were both to getStoreSizeInBits() which multiplies by 8. We then immediately divided by 8. Calling getStoreSize() returns the values we need without the extra arithmetic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242254 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1872,8 +1872,7 @@ SDValue SelectionDAG::CreateStackTemporary(EVT VT, unsigned minAlign) {
|
|||||||
/// CreateStackTemporary - Create a stack temporary suitable for holding
|
/// CreateStackTemporary - Create a stack temporary suitable for holding
|
||||||
/// either of the specified value types.
|
/// either of the specified value types.
|
||||||
SDValue SelectionDAG::CreateStackTemporary(EVT VT1, EVT VT2) {
|
SDValue SelectionDAG::CreateStackTemporary(EVT VT1, EVT VT2) {
|
||||||
unsigned Bytes = std::max(VT1.getStoreSizeInBits(),
|
unsigned Bytes = std::max(VT1.getStoreSize(), VT2.getStoreSize());
|
||||||
VT2.getStoreSizeInBits())/8;
|
|
||||||
Type *Ty1 = VT1.getTypeForEVT(*getContext());
|
Type *Ty1 = VT1.getTypeForEVT(*getContext());
|
||||||
Type *Ty2 = VT2.getTypeForEVT(*getContext());
|
Type *Ty2 = VT2.getTypeForEVT(*getContext());
|
||||||
const DataLayout &DL = getDataLayout();
|
const DataLayout &DL = getDataLayout();
|
||||||
|
Reference in New Issue
Block a user