[EarlyCSE] Teach about CSE'ing over invariant.start intrinsics
authorAnna Thomas <anna@azul.com>
Tue, 9 Aug 2016 20:00:47 +0000 (20:00 +0000)
committerAnna Thomas <anna@azul.com>
Tue, 9 Aug 2016 20:00:47 +0000 (20:00 +0000)
commitb2d12b81c34a14a29cd12d1a597f49b344de7a07
tree2f60e4264509a91add3b2f503de90a048ea1818e
parent6b1f5f891fcb3b3d513e8935d3c7b4b5151217a8
[EarlyCSE] Teach about CSE'ing over invariant.start intrinsics

Summary:
Teach EarlyCSE about invariant.start intrinsic. Specifically, we can perform
store-load, load-load forwarding over this call.

Reviewers: majnemer, reames, dberlin, sanjoy

Subscribers: llvm-commits

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

llvm-svn: 278153
llvm/lib/Transforms/Scalar/EarlyCSE.cpp
llvm/test/Transforms/EarlyCSE/invariant.start.ll [new file with mode: 0644]