Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I think it should be ok to remove the code, but I would rather we keep the tests, the test is hitting the limitation of StructurizeCFG. The test contains infinite loop in its CFG. Maybe we can update the comment in the test to say this, and see whether we could solve this problem later.
Whay do you think about removing this test and introducing a separate infinite-loop.ll test ? I'd prefer a test that matches what we expect StructurizeCFG to do on an infinite loop (in this particular case, nothing) than the current test.
llvm/test/Transforms/StructurizeCFG/infinite-loop.ll | ||
---|---|---|
8 | I think you can just remove this one, we don't need to test against 'br undef'. There has been discussion to remove 'br undef' in test, see https://discourse.llvm.org/t/please-dont-use-br-undef-in-tests-aka-please-avoid-test-cases-with-ub/63115. Other parts LGTM. |
I think you can just remove this one, we don't need to test against 'br undef'. There has been discussion to remove 'br undef' in test, see https://discourse.llvm.org/t/please-dont-use-br-undef-in-tests-aka-please-avoid-test-cases-with-ub/63115. Other parts LGTM.