[LICM] Allow freeze to hoist/sink out of a loop
authorJuneyoung Lee <aqjune@gmail.com>
Sat, 29 Feb 2020 13:00:44 +0000 (22:00 +0900)
committerJuneyoung Lee <aqjune@gmail.com>
Tue, 3 Mar 2020 03:29:39 +0000 (12:29 +0900)
commit9f1f244d3cb8168021a56bcb661c2b08b7bd7cbd
tree9e4e371d0957e040ef4179e3461b6d77c1d67aed
parentaf57b139a0808be41383e8b3838bb8277423c2ab
[LICM] Allow freeze to hoist/sink out of a loop

Summary: This patch allows LICM to hoist/sink freeze instructions out of a loop.

Reviewers: reames, fhahn, efriedma

Reviewed By: reames

Subscribers: jfb, lebedev.ri, hiraditya, asbirlea, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D75400
llvm/lib/Transforms/Scalar/LICM.cpp
llvm/test/Transforms/LICM/freeze.ll [new file with mode: 0644]