search for: regbkilled

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

2013 Sep 17
2
[LLVMdev] Codegen performance issue: LEA vs. INC.
...there is a pass in code gen that replaces index increment with lea. Here is the snippet 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 calle...
2013 Oct 02
0
[LLVMdev] Codegen performance issue: LEA vs. INC.
...ith lea. > > Here is the snippet 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. > > } > > } > > } > > &gt...
2013 Oct 03
2
[LLVMdev] Codegen performance issue: LEA vs. INC.
...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. >> >> }...
2013 Oct 05
0
[LLVMdev] Codegen performance issue: LEA vs. INC.
...onPass.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 instruct...