Ignore:
Timestamp:
Dec 28, 2017, 1:15:13 PM (13 months ago)
Author:
nmedfort
Message:

Bug fix for RE local + some clean up of RE local and the RE Compiler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/IR_Gen/CBuilder.cpp

    r5782 r5812  
    13111311        if (Align > 1) {
    13121312            ConstantInt * align = ConstantInt::get(intPtrTy, Align);
    1313             CreateAssertZero(CreateURem(intSrc, align), "CreateMemCpy: Src pointer is misaligned");
    1314             CreateAssertZero(CreateURem(intDst, align), "CreateMemCpy: Dst pointer is misaligned");
     1313            CreateAssertZero(CreateURem(intSrc, align), "CreateMemCpy: Src is misaligned");
     1314            CreateAssertZero(CreateURem(intDst, align), "CreateMemCpy: Dst is misaligned");
    13151315        }
    13161316        Value * intSize = CreateZExtOrTrunc(Size, intPtrTy);
     
    13261326    if (LLVM_UNLIKELY(codegen::DebugOptionIsSet(codegen::EnableAsserts))) {
    13271327        CHECK_ADDRESS(Ptr, Size, "CreateMemSet");
     1328        if (Align > 1) {
     1329            DataLayout DL(getModule());
     1330            IntegerType * const intPtrTy = DL.getIntPtrType(getContext());
     1331            Value * intPtr = CreatePtrToInt(Ptr, intPtrTy);
     1332            ConstantInt * align = ConstantInt::get(intPtrTy, Align);
     1333            CreateAssertZero(CreateURem(intPtr, align), "CreateMemSet: Ptr is misaligned");
     1334        }
    13281335    }
    13291336    return IRBuilder<>::CreateMemSet(Ptr, Val, Size, Align, isVolatile, TBAATag, ScopeTag, NoAliasTag);
Note: See TracChangeset for help on using the changeset viewer.