[PATCH] Fix float division-by-zero in R600 scheduler

Alexey Samsonov vonosmas at gmail.com
Mon Sep 15 11:08:37 PDT 2014


Hi vljn,

Fix a float division by zero reported by UBSan. It was reported
in the following test cases:
    LLVM :: CodeGen/R600/and.ll
    LLVM :: CodeGen/R600/fma.ll
    LLVM :: CodeGen/R600/xor.ll
I'm not sure is actually an accepted value for ALUFetchRationEstimate,
or we should add an assert and fix a bug elsewhere. Please take a look.

http://reviews.llvm.org/D5359

Files:
  lib/Target/R600/R600MachineScheduler.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5359.13722.patch
Type: text/x-patch
Size: 2405 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140915/e549c5dc/attachment.bin>


More information about the llvm-commits mailing list