This is an archive of the discontinued LLVM Phabricator instance.

Remove HasFnAttribute guards to getFnAttribute calls
ClosedPublic

Authored by niravd on Mar 29 2016, 10:35 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

niravd updated this revision to Diff 51948.Mar 29 2016, 10:35 AM
niravd retitled this revision from to Remove HasFnAttribute guards to getFnAttribute calls.
niravd added a reviewer: hans.
niravd updated this object.
niravd added a subscriber: llvm-commits.
hans edited edge metadata.Mar 29 2016, 2:09 PM

Thanks for fixing this!

lib/Target/ARM/ARMTargetMachine.cpp
221 ↗(On Diff #51948)

Looks like this is wider than 80 columns? Same goes for the others below.

lib/Transforms/Utils/LoopUtils.cpp
479 ↗(On Diff #51948)

can probably just use this to initialize HasFunNoNaNAttr when it's declared

niravd updated this revision to Diff 52040.Mar 30 2016, 5:46 AM
niravd marked 2 inline comments as done.
niravd edited edge metadata.

Address comments

hans accepted this revision.Mar 30 2016, 8:20 AM
hans edited edge metadata.

lgtm with comment

lib/Transforms/Utils/LoopUtils.cpp
476 ↗(On Diff #52040)

Looks like F isn't declared until further below?

This revision is now accepted and ready to land.Mar 30 2016, 8:20 AM
niravd marked an inline comment as done.Mar 30 2016, 8:45 AM
niravd added inline comments.
lib/Transforms/Utils/LoopUtils.cpp
476 ↗(On Diff #52040)

Fixed. This is what I get for not doing a sanity compile check on a minor change.

This revision was automatically updated to reflect the committed changes.
niravd marked an inline comment as done.