Changeset 6290


Ignore:
Timestamp:
Jan 19, 2019, 2:44:54 PM (5 months ago)
Author:
cameron
Message:

Eliminate unneeded fsync calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/stdout_kernel.cpp

    r6261 r6290  
    2828
    2929void StdOutKernel::generateFinalizeMethod(const std::unique_ptr<KernelBuilder> & b) {
    30     b->CreateFSync(b->getInt32(STDOUT_FILENO));
    3130}
    3231
     
    114113    BasicBlock * const exit = b->CreateBasicBlock("exit");
    115114    Value * const temporaryFileName = b->getScalarField("temporaryFileName");
    116     Value * const fileDescriptor = b->getScalarField("fileDescriptor");
    117     b->CreateFSync(fileDescriptor);
    118115    b->CreateLikelyCondBr(b->CreateIsNotNull(temporaryFileName), hasTemporaryFile, exit);
    119116
    120117    b->SetInsertPoint(hasTemporaryFile);
     118    Value * const fileDescriptor = b->getScalarField("fileDescriptor");
    121119    b->CreateCloseCall(fileDescriptor);
    122120    Value * const fileName = b->getScalarField("fileName");
Note: See TracChangeset for help on using the changeset viewer.