[PATCH] D132880: [SVE] Fix SVEDup0 matching -0.0f
Stephen Long via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 29 12:50:10 PDT 2022
steplong created this revision.
Herald added subscribers: ctetreau, psnobl, hiraditya, tschuett.
Herald added a reviewer: efriedma.
Herald added a project: All.
steplong requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This checks for floating point positive zero. That way SVEDup0 won't match -0.0f.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D132880
Files:
llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
Index: llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
===================================================================
--- llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
+++ llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
@@ -207,7 +207,7 @@
if (CN->isZero())
return true;
if (auto CN = dyn_cast<ConstantFPSDNode>(Opnd0))
- if (CN->isZero())
+ if (CN->isZero() && !CN->isNegative())
return true;
break;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132880.456443.patch
Type: text/x-patch
Size: 474 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220829/429c65c6/attachment.bin>
More information about the llvm-commits
mailing list