#include "src/compiler/turboshaft/late-load-elimination-reducer.h"
#include "src/compiler/turboshaft/assembler.h"
#include "src/compiler/turboshaft/copying-phase.h"
#include "src/compiler/turboshaft/machine-optimization-reducer.h"
#include "src/compiler/turboshaft/operations.h"
#include "src/compiler/turboshaft/opmasks.h"
#include "src/compiler/turboshaft/phase.h"
#include "src/compiler/turboshaft/representations.h"
#include "src/compiler/turboshaft/required-optimization-reducer.h"
#include "src/compiler/turboshaft/variable-reducer.h"
#include "test/common/flag-utils.h"
#include "test/unittests/compiler/turboshaft/reducer-test.h"
namespace v8::internal::compiler::turboshaft {
#include "src/compiler/turboshaft/define-assembler-macros.inc"
#define C …
class LateLoadEliminationReducerTest : public ReducerTest { … };
TEST_F(LateLoadEliminationReducerTest, Int32TruncatedLoad_Foldable) { … }
TEST_F(LateLoadEliminationReducerTest,
Int32TruncatedLoad_NonFoldable_AdditionalUse) { … }
TEST_F(LateLoadEliminationReducerTest,
Int32TruncatedLoad_NonFoldable_ReplacingOtherLoad) { … }
TEST_F(LateLoadEliminationReducerTest,
Int32TruncatedLoad_Foldable_ReplacingOtherLoad) { … }
TEST_F(LateLoadEliminationReducerTest,
Int32TruncatedLoad_NonFoldable_ReplacedByOtherLoad) { … }
TEST_F(LateLoadEliminationReducerTest,
Int32TruncatedLoad_Foldable_ReplacedByOtherLoad) { … }
TEST_F(LateLoadEliminationReducerTest,
Int32TruncatedLoad_NonFoldable_AdditionalBitcastUse) { … }
#undef C
#include "src/compiler/turboshaft/undef-assembler-macros.inc"
}