[all-commits] [llvm/llvm-project] a911fe: [LV] Do not try to sink dead instructions.

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue Jan 28 08:28:51 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a911fef3dd79e0a04b241be7b476dde7e99744c4
      https://github.com/llvm/llvm-project/commit/a911fef3dd79e0a04b241be7b476dde7e99744c4
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2020-01-28 (Tue, 28 Jan 2020)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/LoopVectorize/first-order-recurrence.ll

  Log Message:
  -----------
  [LV] Do not try to sink dead instructions.

Dead instructions do not need to be sunk. Currently we try and record
the recipies for them, but there are no recipes emitted for them and
there's nothing to sink. They can be removed from SinkAfter while
marking them for recording.

Fixes PR44634.

Reviewers: rengolin, hsaito, fhahn, Ayal, gilr

Reviewed By: gilr

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




More information about the All-commits mailing list