summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2016-06-26 04:55:17 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2016-06-26 04:55:17 +0000
commit1e7eeb4bf0bb727002870d63241eadb68e102e23 (patch)
tree86ce26b1d95ce0a8bc60bf54a1742449a473254e /llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
parent6cf88091b31334cf5334fa6badb0dae63a44b3ba (diff)
downloadbcm5719-llvm-1e7eeb4bf0bb727002870d63241eadb68e102e23.tar.gz
bcm5719-llvm-1e7eeb4bf0bb727002870d63241eadb68e102e23.zip
[RSForGC] Bring analyzeParsePointLiveness up to code; NFC
llvm-svn: 273794
Diffstat (limited to 'llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
index 486a042c708..7a71b31181a 100644
--- a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
+++ b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
@@ -277,22 +277,22 @@ static std::string suffixed_name_or(Value *V, StringRef Suffix,
static void
analyzeParsePointLiveness(DominatorTree &DT,
GCPtrLivenessData &OriginalLivenessData, CallSite CS,
- PartiallyConstructedSafepointRecord &result) {
- Instruction *inst = CS.getInstruction();
+ PartiallyConstructedSafepointRecord &Result) {
+ Instruction *Inst = CS.getInstruction();
StatepointLiveSetTy LiveSet;
- findLiveSetAtInst(inst, OriginalLivenessData, LiveSet);
+ findLiveSetAtInst(Inst, OriginalLivenessData, LiveSet);
if (PrintLiveSet) {
- errs() << "Live Variables:\n";
+ dbgs() << "Live Variables:\n";
for (Value *V : LiveSet)
dbgs() << " " << V->getName() << " " << *V << "\n";
}
if (PrintLiveSetSize) {
- errs() << "Safepoint For: " << CS.getCalledValue()->getName() << "\n";
- errs() << "Number live values: " << LiveSet.size() << "\n";
+ dbgs() << "Safepoint For: " << CS.getCalledValue()->getName() << "\n";
+ dbgs() << "Number live values: " << LiveSet.size() << "\n";
}
- result.LiveSet = LiveSet;
+ Result.LiveSet = LiveSet;
}
static bool isKnownBaseResult(Value *V);
OpenPOWER on IntegriCloud