[llvm] [VectorCombine] Enable transform 'scalarizeLoadExtract' for non constant indexes (PR #65445)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 14 22:34:38 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)
----------------
nikic wrote:
Can we move the value instead? Maybe using try_emplace instead of insert would work?
https://github.com/llvm/llvm-project/pull/65445
More information about the llvm-commits
mailing list