[PATCH] D11144: ConstantFolding- Trunc, rint and nearbyint

Nick Lewycky nicholas at mxc.ca
Thu Jul 16 23:46:58 PDT 2015


nicholas added a comment.

Chakshu Grover wrote:

> chakshugrover updated this revision to Diff 29891.

>  chakshugrover added a comment.

> 

> As discussed, I have implemented trunc, float, ceil in terms of llvm::APFloat API but for implementing rint and nearbyint, I require the knowledge of current rounding mode. Can you please suggest?


We don't support rounding modes, so assume round towards nearest.

> Thanks and Regards

> 

> http://reviews.llvm.org/D11144

> 

> Files:

> 

>   lib/Analysis/ConstantFolding.cpp

>   test/Transforms/InstCombine/intrinsics.ll



http://reviews.llvm.org/D11144







More information about the llvm-commits mailing list