Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[InstCombine] Fix miscompile on GEP+load to icmp fold #628

Closed
wants to merge 2 commits into from

Commits on Jun 18, 2024

  1. [InstCombine] Add pre-commit test for Fix miscompile on GEP+load to i…

    …cmp fold
    
    Add test where for folding GEP+load to icmp
    (uint64_t)-1 is used instead of
    -1 that is represented in 256 bits.
    
    Signed-off-by: Vladimir Radosavljevic <vr@matterlabs.dev>
    vladimirradosavljevic committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    b410b31 View commit details
    Browse the repository at this point in the history
  2. [InstCombine] Fix miscompile on GEP+load to icmp fold

    When constructing mask, use -1 that is
    represented in 256 bits instead of
    (uint64_t)-1 value.
    
    Signed-off-by: Vladimir Radosavljevic <vr@matterlabs.dev>
    vladimirradosavljevic committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    95a8b42 View commit details
    Browse the repository at this point in the history