diff options
author | William Moses <gh@wsmoses.com> | 2025-09-14 22:50:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-14 22:50:42 -0500 |
commit | c44e015b49e832c9f3749c33cf5c9d5aacaf60a4 (patch) | |
tree | 9e0c83a30de29392cfbad130a4adb06a808a780b /llvm/lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | 1e3dd5ef29464b86005705bebec721ac5933bd85 (diff) | |
download | llvm-c44e015b49e832c9f3749c33cf5c9d5aacaf60a4.zip llvm-c44e015b49e832c9f3749c33cf5c9d5aacaf60a4.tar.gz llvm-c44e015b49e832c9f3749c33cf5c9d5aacaf60a4.tar.bz2 |
[SimplifyCFG] Refine metadata handling during instruction hoisting (#158448)
Co-authored-by: Nikita Popov <npopov@redhat.com>
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index 5a842f9..a1f759d 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -3392,7 +3392,7 @@ bool SimplifyCFGOpt::speculativelyExecuteBB(BranchInst *BI, // hoisting above. for (auto &I : make_early_inc_range(*ThenBB)) { if (!SpeculatedStoreValue || &I != SpeculatedStore) { - I.setDebugLoc(DebugLoc::getDropped()); + I.dropLocation(); } I.dropUBImplyingAttrsAndMetadata(); |