OSDN Git Service

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)
commit9faad5871fb7c385f5f49eada8889f638ccc9795
treef8eb588637493bcfd420138aac888c174f3524b3
parentb035d535c3c471575882b7176a6b0308b01fe536
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282894 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopUnrollPass.cpp
test/Transforms/LoopUnroll/unroll-pragmas.ll