llvm.org GIT mirror llvm / f5f726b
[ValueTracking] Use Instruction::getFunction; NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275465 91177308-0d34-0410-b5e6-96231b3b80d8 Sanjoy Das 4 years ago
1 changed file(s) with 2 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
31063106 const LoadInst *LI = cast(Inst);
31073107 if (!LI->isUnordered() ||
31083108 // Speculative load may create a race that did not exist in the source.
3109 LI->getParent()->getParent()->hasFnAttribute(
3110 Attribute::SanitizeThread) ||
3109 LI->getFunction()->hasFnAttribute(Attribute::SanitizeThread) ||
31113110 // Speculative load may load data from dirty regions.
3112 LI->getParent()->getParent()->hasFnAttribute(
3113 Attribute::SanitizeAddress))
3111 LI->getFunction()->hasFnAttribute(Attribute::SanitizeAddress))
31143112 return false;
31153113 const DataLayout &DL = LI->getModule()->getDataLayout();
31163114 return isDereferenceableAndAlignedPointer(LI->getPointerOperand(),