This patch adds a peepholing optimization that removes extra ptest instructions where they are not required, for example:
- ptest of true and another existing condition
- ptest of the same condition twice
Co-Authored-by: Graham Hunter <graham.hunter@arm.com>
Co-Authored-by: Paul Walker <paul.walker@arm.com>
I cannot see any unit tests for this block of functionality.