[llvm] [VectorCombine] Enable transform 'scalarizeLoadExtract' for non constant indexes (PR #65445)
Ben Shi via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 25 02:49:08 PDT 2023
================
@@ -969,7 +970,11 @@ class ScalarizationResult {
public:
ScalarizationResult(const ScalarizationResult &Other) = default;
~ScalarizationResult() {
- assert(!ToFreeze && "freeze() not called with ToFreeze being set");
+ // The object may be copied to another scope if it is in state
+ // StatusTy::SafeWithFreeze.
+ if (Status != StatusTy::SafeWithFreeze)
----------------
benshi001 wrote:
Using `std::move` and `try_emplace` do work. No need to modify the destructor. Thanks!
https://github.com/llvm/llvm-project/pull/65445
More information about the llvm-commits
mailing list