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: unassignedb...@nondot.org
Reporter: florian_h...@apple.com
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs