[llvm] [missed-opt][X86] Optimize fptosi+select down to a single cvttsd2si Instruction on X86 (PR #172710)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 7 04:06:56 PST 2026
================
@@ -1048,6 +1048,10 @@ template <typename Opnd> inline UnaryOpc_match<Opnd> m_Abs(const Opnd &Op) {
return UnaryOpc_match<Opnd>(ISD::ABS, Op);
}
+template <typename Opnd> inline UnaryOpc_match<Opnd> m_FAbs(const Opnd &Op) {
+ return UnaryOpc_match<Opnd>(ISD::FABS, Op);
+}
----------------
Bhuvan1527 wrote:
Got it. I can take that as well. We already have code changes. I can add some tests.
If you are okay with the same, Please assign that to me.
https://github.com/llvm/llvm-project/pull/172710
More information about the llvm-commits
mailing list