[all-commits] [llvm/llvm-project] 9928db: [DAGCombiner] Slightly simplify code in visitBSWAP...

Craig Topper via All-commits all-commits at lists.llvm.org
Mon May 4 09:08:42 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9928db4b6e3b5077760eee3c2d1036def247ba8c
      https://github.com/llvm/llvm-project/commit/9928db4b6e3b5077760eee3c2d1036def247ba8c
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2026-05-04 (Mon, 04 May 2026)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

  Log Message:
  -----------
  [DAGCombiner] Slightly simplify code in visitBSWAP. NFC (#193896)

Use alignDown and do computation in bits instead of converting to bytes
and back to bits. This is similar to what we do in InstCombineCalls for
the same transform.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list