[all-commits] [llvm/llvm-project] d88849: [SROA] Fix bug where RankVectorTypes is used in st...

Han Zhu via All-commits all-commits at lists.llvm.org
Tue Mar 7 14:11:19 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d888496e3c54f40e37db8ad273dff2456aad671d
      https://github.com/llvm/llvm-project/commit/d888496e3c54f40e37db8ad273dff2456aad671d
  Author: Han Zhu <zhuhan7737 at gmail.com>
  Date:   2023-03-07 (Tue, 07 Mar 2023)

  Changed paths:
    M llvm/lib/Transforms/Scalar/SROA.cpp
    M llvm/test/Transforms/SROA/sroa-common-type-fail-promotion.ll

  Log Message:
  -----------
  [SROA] Fix bug where RankVectorTypes is used in std::unique

`RankVectorTypes` is a not an equivalence relation so when it is used in
`std::unique`, the behavior is undefined. Create `RankVectorTypesEq` and use
that instead.




More information about the All-commits mailing list