[PATCH] D98351: [llvm-opt] Bug fix within combining FP vectors

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 18 10:21:18 PDT 2021


sdesmalen added inline comments.


================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp:1572
   auto *CV = dyn_cast<Constant>(V);
   auto *CVVTy = dyn_cast<VectorType>(V->getType());
   if (!CV || !CVVTy)
----------------
If you change VectorType to FixedVectorType here, it will automatically bail out on line 1573, and then you can undo the remaining changes in this function.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D98351



More information about the llvm-commits mailing list