Skip to content
Commit 1f81deee authored by Craig Topper's avatar Craig Topper
Browse files

[CodeGen] Make the TwoAddressInstructionPass check if the instruction is...

[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
parent 3639cda7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment