summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Thumb/cmp-fold.ll
Commit message (Collapse)AuthorAgeFilesLines
* [Thumb1] Teach optimizeCompareInstr about thumb1 comparesJames Molloy2016-09-091-0/+57
This avoids us doing a completely unneeded "cmp r0, #0" after a flag-setting instruction if we only care about the Z or C flags. Add LSL/LSR to the whitelist while we're here and add testing. This code could really do with a spring clean. llvm-svn: 281027
OpenPOWER on IntegriCloud