Update loop unroller cost model to make sure debug info does not affect optimization...
authorDehao Chen <dehao@google.com>
Fri, 30 Sep 2016 18:30:04 +0000 (18:30 +0000)
committerDehao Chen <dehao@google.com>
Fri, 30 Sep 2016 18:30:04 +0000 (18:30 +0000)
commit977853b7c52bd2e05ec9150513c509edc831c9c6
treebceeba0f26f0d97c11f12ed66bd4c170e0dfb722
parent4b0c5aea7856eacf0e309360a3e72cf96cf602e9
Update loop unroller cost model to make sure debug info does not affect optimization decisions.

Summary: Debug info should *not* affect optimization decisions. This patch updates loop unroller cost model to make it not affected by debug info.

Reviewers: davidxl, mzolotukhin

Subscribers: haicheng, llvm-commits, mzolotukhin

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

llvm-svn: 282894
llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
llvm/test/Transforms/LoopUnroll/unroll-pragmas.ll