aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Scalar/LoopDistribute.cpp
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2016-06-29 04:55:19 +0000
committerAdam Nemet <anemet@apple.com>2016-06-29 04:55:19 +0000
commitad437fff53913c8a06c475b1dd2698d8b578ebf8 (patch)
treeaa4fef7ab9acdb447b43806d33ed85cbe745a2e6 /llvm/lib/Transforms/Scalar/LoopDistribute.cpp
parent48e4251e1de18c368e3adba9ed55dcd7d6b7e0ac (diff)
downloadllvm-ad437fff53913c8a06c475b1dd2698d8b578ebf8.zip
llvm-ad437fff53913c8a06c475b1dd2698d8b578ebf8.tar.gz
llvm-ad437fff53913c8a06c475b1dd2698d8b578ebf8.tar.bz2
[Diag] Add getter shouldAlwaysPrint. NFC
For the new hotness attribute, the API will take the pass rather than the pass name so we can no longer play the trick of AlwaysPrint being a special pass name. This adds a getter to help the transition. There is also a corresponding clang patch. llvm-svn: 274100
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopDistribute.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopDistribute.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopDistribute.cpp b/llvm/lib/Transforms/Scalar/LoopDistribute.cpp
index 464db8e..a07121e 100644
--- a/llvm/lib/Transforms/Scalar/LoopDistribute.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopDistribute.cpp
@@ -765,8 +765,9 @@ public:
// With Rpass-analysis report why. This is on by default if distribution
// was requested explicitly.
emitOptimizationRemarkAnalysis(
- Ctx, Forced ? DiagnosticInfo::AlwaysPrint : LDIST_NAME, *F,
- L->getStartLoc(), Twine("loop not distributed: ") + Message);
+ Ctx, Forced ? DiagnosticInfoOptimizationRemarkAnalysis::AlwaysPrint
+ : LDIST_NAME,
+ *F, L->getStartLoc(), Twine("loop not distributed: ") + Message);
// Also issue a warning if distribution was requested explicitly but it
// failed.