[all-commits] [llvm/llvm-project] b59c23: [BasicTTI] Return Invalid cost for more scalable v...

Philip Reames via All-commits all-commits at lists.llvm.org
Thu Jun 9 16:11:07 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b59c2315af2193b0f09038a6533867b14083af07
      https://github.com/llvm/llvm-project/commit/b59c2315af2193b0f09038a6533867b14083af07
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2022-06-09 (Thu, 09 Jun 2022)

  Changed paths:
    M llvm/include/llvm/CodeGen/BasicTTIImpl.h

  Log Message:
  -----------
  [BasicTTI] Return Invalid cost for more scalable vector scalarization cases

Instead of crashing on a cast<FixedVectorType>, we should isntead return Invalid for these cases.  This avoids crashes in assert builds, and potential miscompiles in release builds.




More information about the All-commits mailing list