[PATCH] D88578: [InstCombine] recognizeBSwapOrBitReverseIdiom - support for 'partial' bswap patterns (PR47191)
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 30 08:27:13 PDT 2020
RKSimon added inline comments.
================
Comment at: llvm/test/Transforms/InstCombine/bswap.ll:382
+; CHECK-NEXT: [[TMP6:%.*]] = or i64 [[TMP3]], [[TMP5]]
+; CHECK-NEXT: ret i64 [[TMP6]]
;
----------------
We would have reduced this to bswap+mask but InstCombinerImpl::matchBSwap is too harsh at filtering out or(A,B) patterns where A and B have different opcodes.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88578/new/
https://reviews.llvm.org/D88578
More information about the llvm-commits
mailing list