InstCombine: Pass AssumptionCache through isDereferenceablePointer
This commit is contained in:
parent
34fb7803f8
commit
fd37ab6cf6
|
@ -328,7 +328,7 @@ Value *InstCombinerImpl::simplifyMaskedLoad(IntrinsicInst &II) {
|
|||
// If we can unconditionally load from this address, replace with a
|
||||
// load/select idiom. TODO: use DT for context sensitive query
|
||||
if (isDereferenceablePointer(LoadPtr, II.getType(),
|
||||
II.getModule()->getDataLayout(), &II, nullptr)) {
|
||||
II.getModule()->getDataLayout(), &II, &AC)) {
|
||||
LoadInst *LI = Builder.CreateAlignedLoad(II.getType(), LoadPtr, Alignment,
|
||||
"unmaskedload");
|
||||
LI->copyMetadata(II);
|
||||
|
|
Loading…
Reference in New Issue