diff options
author | Tyker <tyker1@outlook.com> | 2020-08-28 21:46:16 +0200 |
---|---|---|
committer | Tyker <tyker1@outlook.com> | 2020-08-28 21:55:45 +0200 |
commit | 6d3657417e0c75611fc52c4adefa0cdf27e89fb1 (patch) | |
tree | 96e3c39aba5ec05dbfaea889070b8dc2e682a07f /llvm/lib/IR/Value.cpp | |
parent | ffe05dd12593f979f235cd34fd467a4c30e051f8 (diff) | |
download | llvm-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.cpp | 2 |
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; } |