search for: convertinstto3addr

Displaying 4 results from an estimated 4 matches for "convertinstto3addr".

2013 Sep 17
2
[LLVMdev] Codegen performance issue: LEA vs. INC.
...from llvm/lib/CodeGen/TwoAddressInstructionPass.cpp if (MI.isConvertibleTo3Addr()) { // This instruction is potentially convertible to a true // three-address instruction. Check if it is profitable. if (!regBKilled || isProfitableToConv3Addr(regA, regB)) { // Try to convert it. if (convertInstTo3Addr(mi, nmi, regA, regB, Dist)) { ++NumConvertedTo3Addr; return true; // Done with this instruction. } } } regBKilled is false for my test case and isProfitableToConv3Addr is not even called. I've made an experiment and left only if (isProfitableToConv3Addr(regA, regB)) { That...
2013 Oct 02
0
[LLVMdev] Codegen performance issue: LEA vs. INC.
...gt; if (MI.isConvertibleTo3Addr()) { > > // This instruction is potentially convertible to a true > > // three-address instruction. Check if it is profitable. > > if (!regBKilled || isProfitableToConv3Addr(regA, regB)) { > > // Try to convert it. > > if (convertInstTo3Addr(mi, nmi, regA, regB, Dist)) { > > ++NumConvertedTo3Addr; > > return true; // Done with this instruction. > > } > > } > > } > > > > regBKilled is false for my test case and isProfitableToConv3Addr is not even > called. > > I’ve mad...
2013 Oct 03
2
[LLVMdev] Codegen performance issue: LEA vs. INC.
...;> >> // This instruction is potentially convertible to a true >> >> // three-address instruction. Check if it is profitable. >> >> if (!regBKilled || isProfitableToConv3Addr(regA, regB)) { >> >> // Try to convert it. >> >> if (convertInstTo3Addr(mi, nmi, regA, regB, Dist)) { >> >> ++NumConvertedTo3Addr; >> >> return true; // Done with this instruction. >> >> } >> >> } >> >> } >> >> >> >> regBKilled is false for my test case and isProfi...
2013 Oct 05
0
[LLVMdev] Codegen performance issue: LEA vs. INC.
...truction is potentially convertible to a true >>> >>> // three-address instruction. Check if it is profitable. >>> >>> if (!regBKilled || isProfitableToConv3Addr(regA, regB)) { >>> >>> // Try to convert it. >>> >>> if (convertInstTo3Addr(mi, nmi, regA, regB, Dist)) { >>> >>> ++NumConvertedTo3Addr; >>> >>> return true; // Done with this instruction. >>> >>> } >>> >>> } >>> >>> } >>> >>> >>> >>&...