@@ -3079,10 +3079,10 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
3079
3079
for (unsigned Idx = 0 ; Idx < II->getNumOperandBundles (); Idx++) {
3080
3080
OperandBundleUse OBU = II->getOperandBundleAt (Idx);
3081
3081
3082
- // Separate storage assumptions apply to the underlying allocations, not any
3083
- // particular pointer within them. When evaluating the hints for AA purposes
3084
- // we getUnderlyingObject them; by precomputing the answers here we can
3085
- // avoid having to do so repeatedly there.
3082
+ // Separate storage assumptions apply to the underlying allocations, not
3083
+ // any particular pointer within them. When evaluating the hints for AA
3084
+ // purposes we getUnderlyingObject them; by precomputing the answers here
3085
+ // we can avoid having to do so repeatedly there.
3086
3086
if (OBU.getTagName () == " separate_storage" ) {
3087
3087
assert (OBU.Inputs .size () == 2 );
3088
3088
auto MaybeSimplifyHint = [&](const Use &U) {
@@ -3097,18 +3097,19 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
3097
3097
MaybeSimplifyHint (OBU.Inputs [1 ]);
3098
3098
}
3099
3099
3100
- // Try to fold alignment assumption into a load's !align metadata, if the assumption is valid in the load's context.
3100
+ // Try to fold alignment assumption into a load's !align metadata, if the
3101
+ // assumption is valid in the load's context.
3101
3102
if (OBU.getTagName () == " align" && OBU.Inputs .size () == 2 ) {
3102
3103
auto *LI = dyn_cast<LoadInst>(OBU.Inputs [0 ]);
3103
- if (!LI || !isValidAssumeForContext (II, LI, &DT, /* AllowEphemerals=*/ true ))
3104
+ if (!LI ||
3105
+ !isValidAssumeForContext (II, LI, &DT, /* AllowEphemerals=*/ true ))
3104
3106
continue ;
3105
3107
auto *Align = cast<ConstantInt>(OBU.Inputs [1 ]);
3106
3108
if (!isPowerOf2_64 (Align->getZExtValue ()))
3107
3109
continue ;
3108
- LI->setMetadata (LLVMContext::MD_align,
3109
- MDNode::get (II->getContext (),
3110
- ValueAsMetadata::getConstant (
3111
- Align)));
3110
+ LI->setMetadata (
3111
+ LLVMContext::MD_align,
3112
+ MDNode::get (II->getContext (), ValueAsMetadata::getConstant (Align)));
3112
3113
auto *New = CallBase::removeOperandBundle (II, OBU.getTagID ());
3113
3114
return New;
3114
3115
}
0 commit comments