Skip to content

Commit 4d7fc2f

Browse files
committed
!fix formatting.
1 parent 2fefc37 commit 4d7fc2f

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
@@ -3202,10 +3202,10 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
32023202
for (unsigned Idx = 0; Idx < II->getNumOperandBundles(); Idx++) {
32033203
OperandBundleUse OBU = II->getOperandBundleAt(Idx);
32043204

3205-
// Separate storage assumptions apply to the underlying allocations, not any
3206-
// particular pointer within them. When evaluating the hints for AA purposes
3207-
// we getUnderlyingObject them; by precomputing the answers here we can
3208-
// avoid having to do so repeatedly there.
3205+
// Separate storage assumptions apply to the underlying allocations, not
3206+
// any particular pointer within them. When evaluating the hints for AA
3207+
// purposes we getUnderlyingObject them; by precomputing the answers here
3208+
// we can avoid having to do so repeatedly there.
32093209
if (OBU.getTagName() == "separate_storage") {
32103210
assert(OBU.Inputs.size() == 2);
32113211
auto MaybeSimplifyHint = [&](const Use &U) {
@@ -3220,18 +3220,19 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
32203220
MaybeSimplifyHint(OBU.Inputs[1]);
32213221
}
32223222

3223-
// Try to fold alignment assumption into a load's !align metadata, if the assumption is valid in the load's context.
3223+
// Try to fold alignment assumption into a load's !align metadata, if the
3224+
// assumption is valid in the load's context.
32243225
if (OBU.getTagName() == "align" && OBU.Inputs.size() == 2) {
32253226
auto *LI = dyn_cast<LoadInst>(OBU.Inputs[0]);
3226-
if (!LI || !isValidAssumeForContext(II, LI, &DT, /*AllowEphemerals=*/true))
3227+
if (!LI ||
3228+
!isValidAssumeForContext(II, LI, &DT, /*AllowEphemerals=*/true))
32273229
continue;
32283230
auto *Align = cast<ConstantInt>(OBU.Inputs[1]);
32293231
if (!isPowerOf2_64(Align->getZExtValue()))
32303232
continue;
3231-
LI->setMetadata(LLVMContext::MD_align,
3232-
MDNode::get(II->getContext(),
3233-
ValueAsMetadata::getConstant(
3234-
Align)));
3233+
LI->setMetadata(
3234+
LLVMContext::MD_align,
3235+
MDNode::get(II->getContext(), ValueAsMetadata::getConstant(Align)));
32353236
auto *New = CallBase::removeOperandBundle(II, OBU.getTagID());
32363237
return New;
32373238
}

0 commit comments

Comments
 (0)