summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/optimize-andiso.ll
Commit message (Collapse)AuthorAgeFilesLines
* Set useful flags for vector imm setting instructionsJinsong Ji2019-03-121-4/+2
| | | | | | | | | | | | Vector imm setting instructions like XXLXORz/XXLXORspz/XXLXORdpz Should behave like LI8. We should set corresponding flags to allow rematerialization and other opts in LICM, RA, Scheduling etc. Differential Revision: https://reviews.llvm.org/D58645 llvm-svn: 355948
* [PowerPC] Optimize compares fed by ANDISoNemanja Ivanovic2018-09-181-0/+44
Both ANDIo and ANDISo (and the 64-bit versions) are record-form instructions. When optimizing compares, we handle the former in order to eliminate the compare instruction but not the latter. This patch just adds the latter to the set of instructions we optimize. The reason these instructions need to be handled separately is that they are not part of the RecFormRel map (since they don't have a non-record-form). The missing "and-immediate-shifted" is just an oversight in the initial implementation. Differential revision: https://reviews.llvm.org/D51353 llvm-svn: 342472
OpenPOWER on IntegriCloud