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

Interaction between precondition and undef inputs #94

Closed
nunoplopes opened this issue Sep 8, 2019 · 1 comment
Closed

Interaction between precondition and undef inputs #94

nunoplopes opened this issue Sep 8, 2019 · 1 comment

Comments

@nunoplopes
Copy link
Member

Logging here since I don't have time today to look into this:
There's an interaction of preconditions taking input registers which can be undef. See example below.
Alive1 didn't have this problem because inputs were never undef.

Pre: WillNotOverflowSignedAdd(%x, %y)
  %r = add i4 %x, %y
=>
  %r = add nsw %x, %y

ERROR: Target is more poisonous than source for i4 %r

Example:
i4 %x = undef
i4 %y = undef
Source value: undef
Target value: poison

With -disable-undef-input it goes through:

----------------------------------------
Pre: WillNotOverflowSignedAdd(%x, %y)
  %r = add i4 %x, %y
=>
  %r = add nsw %x, %y

Done: 1
Optimization is correct!
@nunoplopes
Copy link
Member Author

Fixed here: 38dced3

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

No branches or pull requests

1 participant