[llvm] [BOLT] Fix NOP instruction emission on x86 (PR #72186)

Maksim Panchenko via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 13 22:46:56 PST 2023


================
@@ -4366,6 +4367,10 @@ MCInst *BinaryFunction::getInstructionAtOffset(uint64_t Offset) {
   }
 }
 
+bool BinaryFunction::shouldPreserveNops() const {
+  return PreserveNops || opts::KeepNops;
----------------
maksfb wrote:

What's the rationale behind that extra check?

https://github.com/llvm/llvm-project/pull/72186


More information about the llvm-commits mailing list