OSDN Git Service

[CodeGen] Make the TwoAddressInstructionPass check if the instruction is commutable...
authorCraig Topper <craig.topper@gmail.com>
Sun, 11 Sep 2016 06:00:15 +0000 (06:00 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 11 Sep 2016 06:00:15 +0000 (06:00 +0000)
commit2628aff56683b7652abe9f9eb9e54a82d1716aa7
treecfce9222b861e7622177f23bf82d896a3fdf705b
parentd3eebe7daf2b913d5b1b79ce523c090c64bd4212
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281158 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TwoAddressInstructionPass.cpp