summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/reassoc-scalar.ll
Commit message (Collapse)AuthorAgeFilesLines
* [AMDGPU] Fixed hang during DAG combineStanislav Mekhanoshin2019-02-261-0/+16
| | | | | | | | | | | | | SITargetLowering::reassociateScalarOps() does not touch constants so that DAGCombiner::ReassociateOps() does not revert the combine. However a global address is not a ConstantSDNode. Switched to the method used by DAGCombiner::ReassociateOps() itself to detect constants. Differential Revision: https://reviews.llvm.org/D58695 llvm-svn: 354926
* [AMDGPU] Ressociate 'add (add x, y), z' to use SALUStanislav Mekhanoshin2019-02-141-0/+113
Reassociate adds to collect scalar operands in a single instruction when possible. That will result in a scalar add followed by vector instead of two vector adds, thus better utilizing SALU. Differential Revision: https://reviews.llvm.org/D58220 llvm-svn: 354066
OpenPOWER on IntegriCloud