[PATCH] D6407: [InstCombine] Minor optimization for bswap with binary ops

Robin Lindner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 5 14:18:54 PST 2022


deeprobin added a comment.
Herald added a subscriber: steven.zhang.
Herald added projects: LLVM, All.

@RKSimon

Do you have an example in which productive case this optimization is useful?
No developer will intentionally create two bswaps in a row.

Or was this PR just a nice-to-have?

/cc @qcolombet


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D6407/new/

https://reviews.llvm.org/D6407



More information about the llvm-commits mailing list