HomePhabricator

[VectorCombine] Discard ScalarizationResult state in early exit.

Authored by fhahn on Sep 28 2021, 4:26 AM.

Description

[VectorCombine] Discard ScalarizationResult state in early exit.

ScalarizationResult's destructor makes sure ToFreeze is not ignored if
set. Currently, scalarizeLoadExtract has an early exit if the index is
not safe directly. But when it is SafeWithFreeze, we need to discard the
state first, otherwise we hit the assert in the destructor.

Fixes PR51992.

Details

Committed
fhahnSep 28 2021, 4:52 AM
Parents
rG1aa7b8388581: [Docs][NFC] Add doxygen comment for AtomicExpandPass in passes.h
Branches
Unknown
Tags
Unknown