Details
- Reviewers
- None
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
I don't have a test that exercises this, just following up on the FIXME comments.
llvm/lib/Transforms/Utils/SimplifyCFG.cpp | ||
---|---|---|
341 | Why? |
This is still missing tests.
llvm/lib/Transforms/Utils/SimplifyCFG.cpp | ||
---|---|---|
335 | What I meant here is to move the PoisonValue checks below to above the UndefValue checks, so they are handled first. | |
341 | If one value is poison, the other doesn't matter. Now, if both were actually poison this would already be handled by IV0 == IV1 above, but there's no need to spell it out here. |
I have not been able to construct a test for this manually, and didn't find any hits for it in the test-suite.
You need to check PoisonValue first, because PoisonValue is also an UndefValue.