Change error to warning when a profile cannot be found.
authorDiego Novillo <dnovillo@google.com>
Wed, 22 Oct 2014 13:36:35 +0000 (13:36 +0000)
committerDiego Novillo <dnovillo@google.com>
Wed, 22 Oct 2014 13:36:35 +0000 (13:36 +0000)
commit79ca2c234d001bf26dd3f6a724257ac03abca61a
treee8c7fdd2f5154c24dde6582e230037d65e2a3a21
parent013cbf2f1adad6ea839e8c442ef00705c37675af
Change error to warning when a profile cannot be found.

When the profile for a function cannot be applied, we use to emit an
error. This seems extreme. The compiler can continue, it's just that the
optimization opportunities won't include profile information.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220386 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SampleProfile.cpp
test/Transforms/SampleProfile/syntax.ll