Implement the most basic form of conditional branches in Mips fast-isel.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM with a couple extra comments
lib/Target/Mips/MipsFastISel.cpp | ||
---|---|---|
345 | This confused me for a moment. Could you make it a bit clearer that we're working on the else case at this point? | |
test/CodeGen/Mips/Fast-ISel/br1.ll | ||
23 | It's not necessary for this patch but this instruction is redundant and should be trivial to eliminate. Could you add a FIXME comment to this test? |
Comment Actions
- Add comment making clear the how the code for the basic branch is working. This particular part was copied from the PPC port but we will expand this soon to do more cases by porting the AARCH64 version of this routine.
- Add a FIXME to try and eliminate some unneeded code. This frequently happens in fast-isel because it's a simple one pass compiler.
Comment Actions
- Added comment about true and false targets of the conditional expression.
- Added FIXME to the test case for a redundant instruction that we are generating.
This confused me for a moment. Could you make it a bit clearer that we're working on the else case at this point?