diff options
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index e4809cd..d0669e4 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -3491,6 +3491,9 @@ static unsigned replaceDominatedUsesWith(Value *From, Value *To, unsigned Count = 0; for (Use &U : llvm::make_early_inc_range(From->uses())) { + auto *II = dyn_cast<IntrinsicInst>(U.getUser()); + if (II && II->getIntrinsicID() == Intrinsic::fake_use) + continue; if (!ShouldReplace(Root, U)) continue; LLVM_DEBUG(dbgs() << "Replace dominated use of '"; |