[all-commits] [llvm/llvm-project] 51b4ab: [NFC] Add new setDebugLocFromInst that uses the cl...

david-arm via All-commits all-commits at lists.llvm.org
Thu Jul 1 06:24:10 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 51b4ab26ca583b8d313da7663478392196ae6b6a
      https://github.com/llvm/llvm-project/commit/51b4ab26ca583b8d313da7663478392196ae6b6a
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2021-07-01 (Thu, 01 Jul 2021)

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

  Log Message:
  -----------
  [NFC] Add new setDebugLocFromInst that uses the class Builder by default

In lots of places we were calling setDebugLocFromInst and passing
in the same Builder member variable found in InnerLoopVectorizer.
I personally found this confusing so I've changed the interface
to take an Optional<IRBuilder<> *> and we can now pass in None
when we want to use the class member variable.

Differential Revision: https://reviews.llvm.org/D105100




More information about the All-commits mailing list