summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/add-like-or.ll
Commit message (Collapse)AuthorAgeFilesLines
* ARM: convert ORR instructions to ADD where possible on Thumb.Tim Northover2018-06-201-0/+41
Thumb has more 16-bit encoding space dedicated to ADD than ORR, allowing both a 3-address encoding and a wider range of immediates. So, particularly when optimizing for code size (but it doesn't make things worse elsewhere) it's beneficial to select an OR operation to an ADD if we know overflow won't occur. This is made even better by LLVM's penchant for putting operations in canonical form by converting the other way. llvm-svn: 335119
OpenPOWER on IntegriCloud