Displaying 2 results from an estimated 2 matches for "25aea4a3".
2015 Feb 11
2
[LLVMdev] deleting or replacing a MachineInst
...tter way to
invalidate the MBBI iterator?
Basic blocks aren't that long (on average 4-6 instructions) and this
peephole isn't that common either.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150211/25aea4a3/attachment.html>
2015 Feb 11
2
[LLVMdev] deleting or replacing a MachineInst
This seems a very natural approach but I probably am having a trouble with
the iterator invalidation. However, looking at other peephole optimizers
passes, I couldn't see how to do this:
#define BUILD_INS(opcode, new_reg, i) \
BuildMI(*MBB, MBBI, MBBI->getDebugLoc(), TII->get(X86::opcode)) \
.addReg(X86::new_reg, kill).addImm(i)
for