Missing lift for if-then (it, itt, ittt, itttt) instructions #1720
Labels
Arch: ARM/Thumb
Issues with the ARM/Thumb architecture plugin
Component: Architecture
Issue needs changes to an architecture plugin
Effort: Low
Issue should take < 1 week
Impact: Medium
Issue is impactful with a bad, or no, workaround
Milestone
I frequently see HLIL like this:
I don't think this is architecture-specific, but this particular example is from Thumb code:
There are several suboptimal things there:
arg2 - 2
should have been eliminated, not sure why it wasn'tif
is also the same, maybe it should also use the condvar in cases like this?if
are also the same, and could be mergedif (not(...))
could be anelse
if (x == 1) { ... } else { if (x == 2) { ... } else { if (x == 3) } } }
which could be turned into a switch/case, or at least flattened out toif (x == 1) { ...} else if (x == 2) { ... } ...
The text was updated successfully, but these errors were encountered: