[llvm] r350016 - [Loads] Use LocationSize instead of ints; NFC
George Burgess IV via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 22 19:10:56 PST 2018
Author: gbiv
Date: Sat Dec 22 19:10:56 2018
New Revision: 350016
URL: http://llvm.org/viewvc/llvm-project?rev=350016&view=rev
Log:
[Loads] Use LocationSize instead of ints; NFC
Keeping these patches super small so they're easily post-commit
verifiable, as requested in D44748.
This tries to find literal loads/stores of the given type, so this has
to be precise.
Modified:
llvm/trunk/lib/Analysis/Loads.cpp
Modified: llvm/trunk/lib/Analysis/Loads.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/Loads.cpp?rev=350016&r1=350015&r2=350016&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/Loads.cpp (original)
+++ llvm/trunk/lib/Analysis/Loads.cpp Sat Dec 22 19:10:56 2018
@@ -345,7 +345,7 @@ Value *llvm::FindAvailablePtrLoadStore(V
const DataLayout &DL = ScanBB->getModule()->getDataLayout();
// Try to get the store size for the type.
- uint64_t AccessSize = DL.getTypeStoreSize(AccessTy);
+ auto AccessSize = LocationSize::precise(DL.getTypeStoreSize(AccessTy));
Value *StrippedPtr = Ptr->stripPointerCasts();
More information about the llvm-commits
mailing list