https://bugs.llvm.org/show_bug.cgi?id=52205
Bug ID: 52205
Summary: Instcombine breaks apart std::clamp, X86 backend is
unable to reconstruct
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
Assignee: unassignedb...@nondot.org
Reporter: lebedev...@gmail.com
CC: llvm-bugs@lists.llvm.org
-stdlib=libc++ isn't important here, there's some phase ordering behaviour
that prevents the issue with libstdc++ on the snippet, but not on the orig src.
https://godbolt.org/z/qhhWW74Tf
It sunk trunc into the last select,
and skipped non-sign-changing ashr in the first comparison.
--
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