diff --git a/src/propagate_constant.cpp b/src/propagate_constant.cpp index 49b779c7b40..adad621ce1b 100644 --- a/src/propagate_constant.cpp +++ b/src/propagate_constant.cpp @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright (c) 2015-2024 Advanced Micro Devices, Inc. All rights reserved. + * Copyright (c) 2015-2025 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 @@ -48,6 +48,8 @@ bool skip_propagate(instruction_ref ins) auto alias = instruction::get_output_alias(ins, true); if(alias != ins) return skip_propagate(alias); + if(ins->is_undefined()) + return true; return false; }