https://bugs.llvm.org/show_bug.cgi?id=44622
Bug ID: 44622
Summary: fneg (xor X -2147483648) -> X fold is missing in IR
Product: new-bugs
Version: unspecified
Hardware: All
OS: All
Status: NEW
Keywords: code-quality
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedb...@nondot.org
Reporter: nok.ra...@gmail.com
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org
define float @foo(float %0) {
%2 = fneg float %0
%3 = bitcast float %2 to i32
%4 = xor i32 %3, -2147483648
%5 = bitcast i32 %4 to float
%6 = fneg float %5
%7 = bitcast float %6 to i32
%8 = xor i32 %7, -2147483648
%9 = bitcast i32 %8 to float
ret float %9
}
Adding fast flag to fneg does not help.
https://godbolt.org/z/o9WQYp
--
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