[PATCH] D76727: [VectorCombine] transform bitcasted shuffle to narrower elements

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 25 06:59:46 PDT 2020


lebedev.ri added a comment.

Eeeek.
I'm not sure what i was thinking, there is indeed no point in modelling the cost
of bitcast here because we have the exact same bitcast instruction in either case.



================
Comment at: llvm/lib/Transforms/Vectorize/VectorCombine.cpp:257
+  Type *SrcTy = V->getType();
+  if (!DestTy->isVectorTy() || I.getOperand(0)->getType() != SrcTy)
+    return false;
----------------
I'm not sure how the second part of the check can fail?


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

https://reviews.llvm.org/D76727





More information about the llvm-commits mailing list