Use the DataLayout::typeSizeEqualsStoreSize helper. NFC
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Fri, 24 May 2019 09:20:20 +0000 (09:20 +0000)
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Fri, 24 May 2019 09:20:20 +0000 (09:20 +0000)
commitb4771425f53c7c7efa911eac0399b4029073e7d0
treea762abbe561acccc84830fd8e2c18f998a329eba
parent968cb0e0499436cdbe4dd97e61b1ffb8abd5817c
Use the DataLayout::typeSizeEqualsStoreSize helper. NFC

Just a minor refactoring to use the new helper method
DataLayout::typeSizeEqualsStoreSize(). This is done when
checking if getTypeSizeInBits is equal/non-equal to
getTypeStoreSizeInBits.

llvm-svn: 361613
llvm/lib/CodeGen/CodeGenPrepare.cpp
llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
llvm/lib/Transforms/Scalar/SROA.cpp
llvm/lib/Transforms/Scalar/Scalarizer.cpp