Skip to content

Conversation

@causten
Copy link
Collaborator

@causten causten commented Oct 21, 2025

Motivation

The compare_literals function was calling instruction::get_literal() on instructions that were not necessarily literal instructions. The function assumed that if an instruction could be evaluated (eval() returns non-empty), it was safe to call get_literal(), but this assumption was incorrect.

Changelog Category

    • Added: New functionality.
    • Changed: Changes to existing functionality.
    • Removed: Functionality or support that has been removed. (Compared to a previous release)
    • Optimized: Component performance that has been optimized or improved.
    • Resolved Issues: Known issues from a previous version that have been resolved.
    • Not Applicable: This PR is not to be included in the changelog.

The compare_literals function was calling instruction::get_literal() on instructions that were not necessarily literal instructions. The function assumed that if an instruction could be evaluated (eval() returns non-empty), it was safe to call get_literal(), but this assumption was incorrect.
@causten causten requested a review from aarushjain29 October 21, 2025 19:24
@causten causten changed the title check if instruction is actually a literal (#4388) [7.1.1] check if instruction is actually a literal (#4388) Oct 21, 2025
@codecov
Copy link

codecov bot commented Oct 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Additional details and impacted files
@@                   Coverage Diff                    @@
##           release/rocm-rel-7.1    #4401      +/-   ##
========================================================
- Coverage                 92.26%   92.26%   -0.00%     
========================================================
  Files                       560      560              
  Lines                     26358    26356       -2     
========================================================
- Hits                      24319    24317       -2     
  Misses                     2039     2039              
Files with missing lines Coverage Δ
src/simplify_qdq.cpp 96.12% <100.00%> (-0.02%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants