[llvm-bugs] [Bug 13549] Reassociate: should we convert c*c+c+c+c*c*c to c*(c*c+c+2)? We currently have c*(c*c+c)+c*2.
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Jan 2 04:44:22 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=13549
Simon Pilgrim <llvm-dev at redking.me.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|new bugs |Scalar Optimizations
Version|unspecified |trunk
CC| |llvm-dev at redking.me.uk
Status|NEW |RESOLVED
Resolution|--- |FIXED
Product|new-bugs |libraries
--- Comment #2 from Simon Pilgrim <llvm-dev at redking.me.uk> ---
Resolving - this was fixed sometime around clang 3.8
https://godbolt.org/z/c7vvdc
define i64 @_Z14ComputeMemSizei(i32 %0) {
%2 = sext i32 %0 to i64
%3 = mul nsw i64 %2, %2
%4 = add nuw nsw i64 %3, 2
%5 = mul i64 %4, %2
%6 = add i64 %5, %3
ret i64 %6
}
--
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/20210102/3bd0759e/attachment-0001.html>
More information about the llvm-bugs
mailing list