[all-commits] [llvm/llvm-project] dfd447: [LoopUnswitch] Fix incorrect Modified status

David via All-commits all-commits at lists.llvm.org
Thu Aug 20 00:05:15 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: dfd447c22043b0a64bf1d146735ca33f926bd22d
      https://github.com/llvm/llvm-project/commit/dfd447c22043b0a64bf1d146735ca33f926bd22d
  Author: David Stenberg <david.stenberg at ericsson.com>
  Date:   2020-08-20 (Thu, 20 Aug 2020)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
    A llvm/test/Transforms/LoopUnswitch/convergent-hoist-modified.ll
    A llvm/test/Transforms/LoopUnswitch/invoke-hoist-modified.ll
    A llvm/test/Transforms/LoopUnswitch/optsize-hoist-modified.ll

  Log Message:
  -----------
  [LoopUnswitch] Fix incorrect Modified status

When hoisting simple values out from a loop, and an optsize attribute, a
convergent call, or an invoke instruction hindered the pass from
unswitching the loop, the pass would return an incorrect Modified
status.

This was caught using the check introduced by D80916.

Reviewed By: asbirlea

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




More information about the All-commits mailing list