[PATCH] D138185: [InstCombine] Look through bitcast if possible

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 16 23:11:13 PST 2022


arsenm added inline comments.


================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp:576-578
+          isa<FixedVectorType>(BitCastSrc->getType()) &&
+          cast<FixedVectorType>(BitCastSrc->getType())->getNumElements() ==
+              NumElts) {
----------------
Is there not a more convenient way in PatternMatch to check for matching fixed elements?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D138185



More information about the llvm-commits mailing list