[llvm-bugs] [Bug 41034] New: [LSR] Add bitwidth to formula to properly do wrapping arithmetic
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Mar 11 12:47:46 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41034
Bug ID: 41034
Summary: [LSR] Add bitwidth to formula to properly do wrapping
arithmetic
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Loop Optimizer
Assignee: unassignedbugs at nondot.org
Reporter: florian_hahn at apple.com
CC: llvm-bugs at lists.llvm.org
Currently LSR has a mix of wrapping arithmetic (by casting to uint64_t),
overflow checks and UB due to signed overflow.
As Eli suggested https://reviews.llvm.org/D59211, each formula should store the
underlying bit width, so we can do wrapping properly (e.g. if the bitwidth of
the inputs is >64bit)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190311/9fdb6a65/attachment.html>
More information about the llvm-bugs
mailing list