Skip to content

Commit 4895b27

Browse files
committed
Fix clang-format
1 parent 3ed5acf commit 4895b27

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/lib/Transforms/InstCombine/InstructionCombining.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3091,8 +3091,7 @@ Instruction *InstCombinerImpl::visitGetElementPtrInst(GetElementPtrInst &GEP) {
30913091
DL.getIndexSizeInBits(PtrOp->getType()->getPointerAddressSpace());
30923092
APInt BasePtrOffset(IdxWidth, 0);
30933093
Value *UnderlyingPtrOp =
3094-
PtrOp->stripAndAccumulateInBoundsConstantOffsets(DL,
3095-
BasePtrOffset);
3094+
PtrOp->stripAndAccumulateInBoundsConstantOffsets(DL, BasePtrOffset);
30963095
bool CanBeNull, CanBeFreed;
30973096
uint64_t DerefBytes = UnderlyingPtrOp->getPointerDereferenceableBytes(
30983097
DL, CanBeNull, CanBeFreed);
@@ -3120,7 +3119,8 @@ Instruction *InstCombinerImpl::visitGetElementPtrInst(GetElementPtrInst &GEP) {
31203119
// These rewrites is trying to preserve inbounds/nuw attributes. So we want to
31213120
// do this after having tried to derive "nuw" above.
31223121
if (GEP.getNumIndices() == 1) {
3123-
auto GetPreservedNoWrapFlags = [&](bool AddIsNUW, Value *Idx1, Value *Idx2) {
3122+
auto GetPreservedNoWrapFlags = [&](bool AddIsNUW, Value *Idx1,
3123+
Value *Idx2) {
31243124
// Preserve "inbounds nuw" if the original gep is "inbounds nuw", and the
31253125
// add is "nuw". Preserve "nuw" if the original gep is "nuw", and the add
31263126
// is "nuw".
@@ -3160,8 +3160,8 @@ Instruction *InstCombinerImpl::visitGetElementPtrInst(GetElementPtrInst &GEP) {
31603160
// as:
31613161
// %newptr = getelementptr i32, ptr %ptr, i32 %idx1
31623162
// %newgep = getelementptr i32, ptr %newptr, i32 idx2
3163-
bool NUW = match(GEP.getOperand(1), m_NNegZExt(m_NUWAddLike(m_Value(),
3164-
m_Value())));
3163+
bool NUW = match(GEP.getOperand(1),
3164+
m_NNegZExt(m_NUWAddLike(m_Value(), m_Value())));
31653165
GEPNoWrapFlags NWFlags = GetPreservedNoWrapFlags(NUW, Idx1, C);
31663166
auto *NewPtr = Builder.CreateGEP(
31673167
GEP.getSourceElementType(), GEP.getPointerOperand(),

0 commit comments

Comments
 (0)