[all-commits] [llvm/llvm-project] 0deab8: [LV] Either get invariant condition OR vector cond...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sun May 24 09:18:57 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0deab8a54fd8d83853740eb751ddba967ad514f7
      https://github.com/llvm/llvm-project/commit/0deab8a54fd8d83853740eb751ddba967ad514f7
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2020-05-24 (Sun, 24 May 2020)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/LoopVectorize/X86/optsize.ll
    M llvm/test/Transforms/LoopVectorize/float-minmax-instruction-flag.ll

  Log Message:
  -----------
  [LV] Either get invariant condition OR vector condition.

Currently we unconditionally get the first lane of the condition
operand, even if we later use the full vector condition. This can result
in some unnecessary instructions being generated.

Suggested as follow-up in D80219.




More information about the All-commits mailing list