Displaying 3 results from an estimated 3 matches for "dummy_cmp".
2019 Jun 01
2
Optimizing Compare instruction selection
...to replace the assembly code shown above, by just this:
add R0, R1, R2
breq Label
The ‘cmp’ was redundant in this case because the add instruction already set the Z (zero) flag
I tried several things, but I got stuck in some way in all of them. For example, an approach that I tried is to have a ‘dummy_cmp’ instruction, that I generate instead of the regular ‘cmp’ when the comparison is redundant. The ‘dummy_cmp’ must be removed at a latter stage, ideally during the selDAGToDAG phase, but I failed to do so.
- So my first question is. How do I remove the ‘dummy_cmp’ node in the MyTargetISelDAGtoDAG:...
2019 Jun 02
2
Optimizing Compare instruction selection
...above, by just this:
>
> add R0, R1, R2
> breq Label
>
> The ‘cmp’ was redundant in this case because the add instruction already set the Z (zero) flag
>
> I tried several things, but I got stuck in some way in all of them. For example, an approach that I tried is to have a ‘dummy_cmp’ instruction, that I generate instead of the regular ‘cmp’ when the comparison is redundant. The ‘dummy_cmp’ must be removed at a latter stage, ideally during the selDAGToDAG phase, but I failed to do so.
>
> - So my first question is. How do I remove the ‘dummy_cmp’ node in the MyTargetISe...
2019 Jun 05
2
Optimizing Compare instruction selection
...ve, by just this:
>
> add R0, R1, R2
> breq Label
>
> The ‘cmp’ was redundant in this case because the add instruction already set the Z (zero) flag
>
> I tried several things, but I got stuck in some way in all of them. For example, an approach that I tried is to have a ‘dummy_cmp’ instruction, that I generate instead of the regular ‘cmp’ when the comparison is redundant. The ‘dummy_cmp’ must be removed at a latter stage, ideally during the selDAGToDAG phase, but I failed to do so.
>
> - So my first question is. How do I remove the ‘dummy_cmp’ node in the MyTargetIS...