[PATCH] D18564: Remove HasFnAttribute guards to getFnAttribute calls
Hans Wennborg via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 30 08:20:57 PDT 2016
hans accepted this revision.
hans added a comment.
This revision is now accepted and ready to land.
lgtm with comment
================
Comment at: lib/Transforms/Utils/LoopUtils.cpp:476
@@ -476,1 +475,3 @@
+ bool HasFunNoNaNAttr =
+ F.getFnAttribute("no-nans-fp-math").getValueAsString() == "true";
BasicBlock *Header = TheLoop->getHeader();
----------------
Looks like F isn't declared until further below?
http://reviews.llvm.org/D18564
More information about the llvm-commits
mailing list