[llvm] [SelectionDAG] Optimize BSWAP yet again once more (PR #165292)

via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 5 07:02:56 PST 2025


================
@@ -20157,28 +20174,28 @@ bool ARMTargetLowering::targetShrinkDemandedConstant(
 
   assert(VT == MVT::i32 && "Unexpected integer type");
 
+  // Exit early if we demand all bits.
+  if (DemandedBits.popcount() == 32)
----------------
AZero13 wrote:

Just the copy paste of the logic in AArch64 

https://github.com/llvm/llvm-project/pull/165292


More information about the llvm-commits mailing list