Villmow, Micah
2009-Aug-25 21:41 UTC
[LLVMdev] More efficient way of going over memory based instructions
I am writing a pass for a custom backend that I am developing and I need to iterator over all memory based instructions in a program. Currently I iterate over all instructions in a MachineFunction, but I was wondering if there is an efficient way that I can use that only goes over the instructions that have MachineMemOperands that is faster than a linear scan? Thanks, Micah -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090825/7a7ec50b/attachment.html>
Chris Lattner
2009-Aug-26 04:49 UTC
[LLVMdev] More efficient way of going over memory based instructions
On Aug 25, 2009, at 2:41 PM, Villmow, Micah wrote:> I am writing a pass for a custom backend that I am developing and I > need to iterator over all memory based instructions in a program. > Currently I iterate over all instructions in a MachineFunction, but > I was wondering if there is an efficient way that I can use that > only goes over the instructions that have MachineMemOperands that is > faster than a linear scan?Nope, not currently. -Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090825/477d7c17/attachment.html>
Apparently Analagous Threads
- [LLVMdev] Bug in MachineInstr::isIdenticalTo
- [LLVMdev] Bug in MachineInstr::isIdenticalTo
- [LLVMdev] Bug in MachineInstr::isIdenticalTo
- [LLVMdev] Default behavior of DeadMachineInstructionElim deletes all instructions
- [LLVMdev] Can I add GlobalVariable in MachineFunctionPass ?