[all-commits] [llvm/llvm-project] a63eaa: [SLP] Avoid repeated visitation in getVectorElemen...

Nikita Popov via All-commits all-commits at lists.llvm.org
Sun Mar 22 06:34:46 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a63eaa5449fac237d492bd725a88fabf39881dc2
      https://github.com/llvm/llvm-project/commit/a63eaa5449fac237d492bd725a88fabf39881dc2
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2020-03-22 (Sun, 22 Mar 2020)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

  Log Message:
  -----------
  [SLP] Avoid repeated visitation in getVectorElementSize(); NFC

We need to insert into the Visited set at the same time we insert
into the worklist. Otherwise we may end up pushing the same
instruction to the worklist multiple times, and only adding it to
the visited set later.




More information about the All-commits mailing list