[llvm] r311009 - [DemandedBits] simplify call; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 16 07:28:23 PDT 2017
Author: spatel
Date: Wed Aug 16 07:28:23 2017
New Revision: 311009
URL: http://llvm.org/viewvc/llvm-project?rev=311009&view=rev
Log:
[DemandedBits] simplify call; NFC
Modified:
llvm/trunk/lib/Analysis/DemandedBits.cpp
Modified: llvm/trunk/lib/Analysis/DemandedBits.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/DemandedBits.cpp?rev=311009&r1=311008&r2=311009&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/DemandedBits.cpp (original)
+++ llvm/trunk/lib/Analysis/DemandedBits.cpp Wed Aug 16 07:28:23 2017
@@ -368,7 +368,7 @@ void DemandedBits::performAnalysis() {
APInt DemandedBits::getDemandedBits(Instruction *I) {
performAnalysis();
- const DataLayout &DL = I->getParent()->getModule()->getDataLayout();
+ const DataLayout &DL = I->getModule()->getDataLayout();
auto Found = AliveBits.find(I);
if (Found != AliveBits.end())
return Found->second;
More information about the llvm-commits
mailing list