@@ -200,19 +200,18 @@ ModRefInfo AAResults::getModRefInfo(Instruction *I, const CallBase *Call2,
200
200
if (const auto *Call1 = dyn_cast<CallBase>(I)) {
201
201
// Check if the two calls modify the same memory.
202
202
return getModRefInfo (Call1, Call2, AAQI);
203
- } else if (I->isFenceLike ()) {
204
- // If this is a fence, just return ModRef.
205
- return ModRefInfo::ModRef;
206
- } else {
207
- // Otherwise, check if the call modifies or references the
208
- // location this memory access defines. The best we can say
209
- // is that if the call references what this instruction
210
- // defines, it must be clobbered by this location.
211
- const MemoryLocation DefLoc = MemoryLocation::get (I);
212
- ModRefInfo MR = getModRefInfo (Call2, DefLoc, AAQI);
213
- if (isModOrRefSet (MR))
214
- return setModAndRef (MR);
215
203
}
204
+ // If this is a fence, just return ModRef.
205
+ if (I->isFenceLike ())
206
+ return ModRefInfo::ModRef;
207
+ // Otherwise, check if the call modifies or references the
208
+ // location this memory access defines. The best we can say
209
+ // is that if the call references what this instruction
210
+ // defines, it must be clobbered by this location.
211
+ const MemoryLocation DefLoc = MemoryLocation::get (I);
212
+ ModRefInfo MR = getModRefInfo (Call2, DefLoc, AAQI);
213
+ if (isModOrRefSet (MR))
214
+ return setModAndRef (MR);
216
215
return ModRefInfo::NoModRef;
217
216
}
218
217
@@ -808,11 +807,6 @@ AAResults::Concept::~Concept() = default;
808
807
// Provide a definition for the static object used to identify passes.
809
808
AnalysisKey AAManager::Key;
810
809
811
- namespace {
812
-
813
-
814
- } // end anonymous namespace
815
-
816
810
ExternalAAWrapperPass::ExternalAAWrapperPass () : ImmutablePass(ID) {
817
811
initializeExternalAAWrapperPassPass (*PassRegistry::getPassRegistry ());
818
812
}
0 commit comments