Implement diff of PHI nodes
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/test/tools/llvm-diff/phinode.ll | ||
---|---|---|
2 | I'm not super faimiliar with llvm-diff - but I'm guessing this test passes before/after the change, so isn't testing the new functionality, is it? I guess some negative test cases should be tested instead to demonstrate that more parts of the IR are being tested? |
llvm/test/tools/llvm-diff/phinode.ll | ||
---|---|---|
2 | I was a bit dumbfounded that this tool didn't have "negative" tests (except for the callbr for some reason). This test is almost entirely a smoke test—can it run without barfing on a PHI node? I'll see about creating a negative test. |
Looks good - optional test change.
llvm/test/tools/llvm-diff/phinode.ll | ||
---|---|---|
3 | To avoid all the escaping which maybe obscures the purpose of the replacement, maybe this could be s/ 0,/ 1,/ - yeah, means it /could/ match other parts of the IR, but it doesn't currently at least. |
I'm not super faimiliar with llvm-diff - but I'm guessing this test passes before/after the change, so isn't testing the new functionality, is it? I guess some negative test cases should be tested instead to demonstrate that more parts of the IR are being tested?