[llvm] [SPARC] Use hardware byteswapper when we have V9 (PR #191720)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Mon May 11 02:03:28 PDT 2026
================
@@ -3218,13 +3255,109 @@ SDValue SparcTargetLowering::PerformBITCASTCombine(SDNode *N,
return SDValue();
}
+SDValue SparcTargetLowering::PerformBSWAPCombine(SDNode *N,
+ DAGCombinerInfo &DCI) const {
----------------
s-barannikov wrote:
OTOH, I'm not sure illegally typed loads much further. So maybe combining load+bswap before type legalization (as it happens currently) isn't a bad idea after all. It is just we usually try not to introduce target-specific nodes too early.
https://github.com/llvm/llvm-project/pull/191720
More information about the llvm-commits
mailing list