Skip to content

Commit a92e56c

Browse files
committed
!fix formatting.
1 parent 8b65faa commit a92e56c

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3079,10 +3079,10 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
30793079
for (unsigned Idx = 0; Idx < II->getNumOperandBundles(); Idx++) {
30803080
OperandBundleUse OBU = II->getOperandBundleAt(Idx);
30813081

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.
30863086
if (OBU.getTagName() == "separate_storage") {
30873087
assert(OBU.Inputs.size() == 2);
30883088
auto MaybeSimplifyHint = [&](const Use &U) {
@@ -3097,18 +3097,19 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
30973097
MaybeSimplifyHint(OBU.Inputs[1]);
30983098
}
30993099

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.
31013102
if (OBU.getTagName() == "align" && OBU.Inputs.size() == 2) {
31023103
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))
31043106
continue;
31053107
auto *Align = cast<ConstantInt>(OBU.Inputs[1]);
31063108
if (!isPowerOf2_64(Align->getZExtValue()))
31073109
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)));
31123113
auto *New = CallBase::removeOperandBundle(II, OBU.getTagID());
31133114
return New;
31143115
}

0 commit comments

Comments
 (0)