OSDN Git Service

[InlineCost] Skip volatile loads when looking for repeated loads
authorHaicheng Wu <haicheng@codeaurora.org>
Tue, 19 Dec 2017 13:42:58 +0000 (13:42 +0000)
committerHaicheng Wu <haicheng@codeaurora.org>
Tue, 19 Dec 2017 13:42:58 +0000 (13:42 +0000)
commit08a0d2387f5b4e2896ec61d62c38a07f5ed11e18
treebf81c917136b970f3b3c8477ef5ede76ced3518d
parent264f0e710772491b0457b02b9661d223f3ec42a1
[InlineCost] Skip volatile loads when looking for repeated loads

This is a follow-up fix of r320814.  A test case is also added.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321075 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InlineCost.cpp
test/Transforms/Inline/redundant-loads.ll