aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Value.cpp
diff options
context:
space:
mode:
authorTyker <tyker1@outlook.com>2020-08-28 21:46:16 +0200
committerTyker <tyker1@outlook.com>2020-08-28 21:55:45 +0200
commit6d3657417e0c75611fc52c4adefa0cdf27e89fb1 (patch)
tree96e3c39aba5ec05dbfaea889070b8dc2e682a07f /llvm/lib/IR/Value.cpp
parentffe05dd12593f979f235cd34fd467a4c30e051f8 (diff)
downloadllvm-6d3657417e0c75611fc52c4adefa0cdf27e89fb1.zip
llvm-6d3657417e0c75611fc52c4adefa0cdf27e89fb1.tar.gz
llvm-6d3657417e0c75611fc52c4adefa0cdf27e89fb1.tar.bz2
[SROA] Improve handleling of assumes bundles by SROA
This patch fixes this crash https://gcc.godbolt.org/z/Ps8d1e And gives SROA the ability to remove assumes if it allows promoting an alloca to register Without removing assumes when it can't promote to register. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D86570
Diffstat (limited to 'llvm/lib/IR/Value.cpp')
-rw-r--r--llvm/lib/IR/Value.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Value.cpp b/llvm/lib/IR/Value.cpp
index 3e5dd8f..1ef3360 100644
--- a/llvm/lib/IR/Value.cpp
+++ b/llvm/lib/IR/Value.cpp
@@ -205,7 +205,7 @@ void Value::dropDroppableUse(Use &U) {
else {
U.set(UndefValue::get(U.get()->getType()));
CallInst::BundleOpInfo &BOI = Assume->getBundleOpInfoForOperand(OpNo);
- BOI.Tag = getContext().pImpl->getOrInsertBundleTag("ignore");
+ BOI.Tag = Assume->getContext().pImpl->getOrInsertBundleTag("ignore");
}
return;
}