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>
clang-tidy: warning: unused function 'isPTrueOpcode' [clang-diagnostic-unused-function]
not useful