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

Maksim Panchenko via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 14 00:29:39 PST 2023


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

Ah - we can skip the pass all over: #72228.

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


More information about the llvm-commits mailing list