[PATCH] D62478: [LV] Wrap LV illegality reporting in a function. NFC.

Pavel Samolysov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 27 03:36:46 PDT 2019

psamolysov created this revision.
psamolysov added reviewers: hsaito, fhahn.
psamolysov added a project: LLVM.
Herald added subscribers: rkruppe, hiraditya.

  A function for loop vectorization illegality reporting has been
  void LoopVectorizationLegality::reportVectorizationFailure(
      const StringRef DebugMsg, const StringRef OREMsg,
      const StringRef ORETag, Instruction * const I) const;
  The function prints a debug message when the debug for the compilation
  unit is enabled as well as invokes the optimization report emitter to
  generate a message with a specified tag. The function doesn't cover any
  complicated logic when a custom lambda should be passed to the emitter,
  only generating a message with a tag is supported.
  The function always prints the instruction `I` after the debug message
  whenever the instruction is specified, otherwise the debug message
  ends with a dot: 'LV: Not vectorizing: Disabled/already vectorized.'

The idea was present by @hsaito. The patch depends on D62311 <https://reviews.llvm.org/D62311> and should be land after D62311 <https://reviews.llvm.org/D62311> is applied.

  rG LLVM Github Monorepo



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62478.201492.patch
Type: text/x-patch
Size: 19612 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190527/c1085702/attachment.bin>

More information about the llvm-commits mailing list