https://bugs.llvm.org/show_bug.cgi?id=48782
Bug ID: 48782
Summary: llvm.abs ignores prof metadata
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
LLVM seems to ignore prof metadata for llvm.abs.
int abs(int v) {
return __builtin_expect(v > 0, 1) ? v : -v;
}
LLVM trunk -O3
abs: # @abs
mov eax, edi
neg eax
cmovl eax, edi
ret
LLVM 11 -O3
abs: # @abs
mov eax, edi
test edi, edi
js .LBB0_1
ret
.LBB0_1:
neg eax
ret
https://godbolt.org/z/KfzbKd
p.s: same issue for smin/smax/umin/umax?
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs