Skip to content

Commit 9ed87da

Browse files
committed
Use capturesAnything in more places
1 parent 12da7fa commit 9ed87da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/Transforms/IPO/AttributorAttributes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12150,7 +12150,7 @@ struct AAGlobalValueInfoFloating : public AAGlobalValueInfo {
1215012150
Uses.insert(&U);
1215112151
// TODO(captures): Make this more precise.
1215212152
CaptureInfo CI = DetermineUseCaptureKind(U, nullptr);
12153-
if (!capturesNothing(CI) && CI.isRetOnly()) {
12153+
if (capturesAnything(CI) && CI.isRetOnly()) {
1215412154
Follow = true;
1215512155
return true;
1215612156
}

llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1552,7 +1552,7 @@ bool MemCpyOptPass::performStackMoveOptzn(Instruction *Load, Instruction *Store,
15521552
continue;
15531553
CaptureInfo CI = DetermineUseCaptureKind(U, IsDereferenceableOrNull);
15541554
// TODO(captures): Make this more precise.
1555-
if (!capturesNothing(CI)) {
1555+
if (capturesAnything(CI)) {
15561556
if (CI.isRetOnly()) {
15571557
Worklist.push_back(UI);
15581558
continue;

0 commit comments

Comments
 (0)