| commit | 1f81deee1fb8bbdece6245bc898ac08ab941b55c | [log] [tgz] |
|---|---|---|
| author | Craig Topper <craig.topper@gmail.com> | Sun Sep 11 06:00:15 2016 +0000 |
| committer | Craig Topper <craig.topper@gmail.com> | Sun Sep 11 06:00:15 2016 +0000 |
| tree | ee9a37bed15bc03fa1fad0d99f8cfad5cbc512f1 | |
| parent | 3639cda748bdd6636627fd9c922150a33281a814 [diff] |
[CodeGen] Make the TwoAddressInstructionPass check if the instruction is commutable before calling findCommutedOpIndices for every operand. Also make sure the operand is a register before each call to save some work on commutable instructions that might have an operand. llvm-svn: 281158