Skip to content
4 changes: 0 additions & 4 deletions src/include/migraphx/instruction_ref.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,4 @@ struct hash<migraphx::instruction_ref>

} // namespace std

#ifdef _MSC_VER
#include <migraphx/instruction.hpp>
#endif

#endif
4 changes: 3 additions & 1 deletion test/promote_literals_test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2015-2025 Advanced Micro Devices, Inc. All rights reserved.
* Copyright (c) 2015-2026 Advanced Micro Devices, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand All @@ -23,6 +23,8 @@
*/

#include <migraphx/promote_literals.hpp>
#include <migraphx/instruction_ref.hpp>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You dont need to include instruction_ref. The other headers already include it.

#include <migraphx/instruction.hpp>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This include should come after the migraphx/promote_literals.hpp include.

#include <migraphx/program.hpp>
#include <migraphx/dead_code_elimination.hpp>
#include <migraphx/eliminate_common_subexpression.hpp>
Expand Down
Loading