[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 29 08:02:54 PDT 2018


The author has made this change upstream for version 4 of SimpleMOC.

Brian

On Wed, May 16, 2018 at 5:16 AM, Hal Finkel <hfinkel at anl.gov> wrote:

>
> On 05/15/2018 04:37 PM, Brian Homerding via llvm-commits wrote:
>
> 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.
>
>
> We should, to the extent possible, have these changes made upstream as
> well.
>
>  -Hal
>
>
> 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
>>
>
>
>
> _______________________________________________
> llvm-commits mailing listllvm-commits at lists.llvm.orghttp://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
>
> --
> Hal Finkel
> Lead, Compiler Technology and Programming Languages
> Leadership Computing Facility
> Argonne National Laboratory
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180529/b6fb7309/attachment.html>


More information about the llvm-commits mailing list