[test-suite] r332395 - [test-suite][ubsan] Remove optimization that causes UB in SimpleMOC.

Brian Homerding via llvm-commits llvm-commits at lists.llvm.org
Tue May 15 14:37:08 PDT 2018


I have spoken to John about the UB.  He asked if we wanted the change
upstream also and I had left it up to him.  If this is a concern I will
follow up on making the change upstream as well.

Brian

On Tue, May 15, 2018 at 3:49 PM, Davide Italiano <davide at freebsd.org> wrote:

> On Tue, May 15, 2018 at 1:42 PM, Brian Homerding via llvm-commits
> <llvm-commits at lists.llvm.org> wrote:
> > Author: homerdin
> > Date: Tue May 15 13:42:38 2018
> > New Revision: 332395
> >
> > URL: http://llvm.org/viewvc/llvm-project?rev=332395&view=rev
> > Log:
> > [test-suite][ubsan] Remove optimization that causes UB in SimpleMOC.
> >
> > This patch replaces the hand written ceil() with a call to ceilf().
> This small
> > optimization is outside the primary kernel and should show little to no
> > difference in performance for the test suite.  Previously the UB was
> only used
> > in an '==' comparison for an early exit from the loop and had no effect
> on the
> > program behavior.
> >
>
> Have you considered making this change upstream and back porting? I'd
> rather not create unnecessary divergencies, if possible.
> https://github.com/ANL-CESAR/SimpleMOC
>
> --
> Davide
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180515/cdfd4a19/attachment.html>


More information about the llvm-commits mailing list