You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If the load has align metadata, preserve it via an alignment assumption. Note that this doesn't use salavageKnowledge, as we need to create the assumption for the value we replaced the load with.
1594
+
if (auto *AlignMD = Inst.getMetadata(LLVMContext::MD_align)) {
1595
+
auto *A = mdconst::extract<ConstantInt>(AlignMD->getOperand(0));
1596
+
if (Op->getPointerAlignment(SQ.DL).value() % A->getZExtValue() != 0) {
0 commit comments