Unit test changes spot-verified with alive2. As expected, the
transformation is NOT valid with poison.
Details
Details
- Reviewers
- None
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Time | Test | |
---|---|---|
60,520 ms | x64 debian > Clang.Driver::fsanitize.c |
Event Timeline
Comment Actions
I must say that this patch is a bit annoying :)
We are trying to remove undef, and you're adding yet another use.
It's true we can't use poison here. The alternative in the no-undef world is 'freeze poison'. Or just leave the zero there.
Is this change important? If not, I would prefer to not do it, as we'll have to revert it when removing undef (hopefully later this year).
Thanks!
Comment Actions
Agree with @nlopes. I think we should just drop the FIXME here and explain why we're using zero. Using freeze undef is unlikely to be worthwhile, especially as it will get folded to 0 most of the time anyway.