diff options
author | Craig Topper <craig.topper@gmail.com> | 2016-09-11 06:00:15 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2016-09-11 06:00:15 +0000 |
commit | 1f81deee1fb8bbdece6245bc898ac08ab941b55c (patch) | |
tree | ee9a37bed15bc03fa1fad0d99f8cfad5cbc512f1 /llvm/lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | 3639cda748bdd6636627fd9c922150a33281a814 (diff) | |
download | bcm5719-llvm-1f81deee1fb8bbdece6245bc898ac08ab941b55c.tar.gz bcm5719-llvm-1f81deee1fb8bbdece6245bc898ac08ab941b55c.zip |
[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
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
0 files changed, 0 insertions, 0 deletions