This is a small patch to make FoldBranchToCommonDest poison-safe by default.
After fc3f0c9c, only two syntactic changes are needed to fix unit tests.
This does not cause any assembly difference in testsuite as well (-O3, X86-64 Manjaro).
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/test/Transforms/IRCE/bad_expander.ll | ||
---|---|---|
101 | This looks a bit suspect to me. Shouldn't the impliesPoison turn this into an and, because true cannot be poison? Or does this only get folded to true lateron? |
llvm/test/Transforms/IRCE/bad_expander.ll | ||
---|---|---|
101 | FoldBranchToCommonDest merges %maybe_exit and %rc, so select is created at the moment. %rc is folded to true later. |
This looks a bit suspect to me. Shouldn't the impliesPoison turn this into an and, because true cannot be poison? Or does this only get folded to true lateron?