Displaying 1 result from an estimated 1 matches for "noopstoadd".
2017 Aug 01
2
X86PadShortFunction.cpp inserts noops twice
...ion.cpp I found that
/// addPadding - Add the given number of NOOP instructions to the function
/// just prior to the return at MBBI
void PadShortFunc::addPadding(MachineBasicBlock *MBB,
MachineBasicBlock::iterator &MBBI,
unsigned int NOOPsToAdd) {
DebugLoc DL = MBBI->getDebugLoc();
while (NOOPsToAdd-- > 0) {
BuildMI(*MBB, MBBI, DL, TII->get(X86::NOOP));
BuildMI(*MBB, MBBI, DL, TII->get(X86::NOOP));
}
What is the reason to add two noops? What am I missing?
Thank you,
Serguei.
-------------- next part ---------...