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)
commita67c0b43e151672a49814abf12350d1de03cefc4
treec774a64609ba0f4ae429837e6dc3ff67b05e2bf5
parent61e652334fe94931138706472c4f052cc9b8207a
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.

llvm-svn: 220386
llvm/lib/Transforms/Scalar/SampleProfile.cpp
llvm/test/Transforms/SampleProfile/syntax.ll