[llvm] Add option to turn off optimization for X86 assembler (PR #75895)
Shengchen Kan via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 26 17:49:40 PST 2023
================
@@ -3670,11 +3674,11 @@ bool X86AsmParser::ParseInstruction(ParseInstructionInfo &Info, StringRef Name,
}
bool X86AsmParser::processInstruction(MCInst &Inst, const OperandVector &Ops) {
- if (ForcedVEXEncoding != VEXEncoding_VEX3 &&
+ if (AsmOptimize && ForcedVEXEncoding != VEXEncoding_VEX3 &&
X86::optimizeInstFromVEX3ToVEX2(Inst, MII.get(Inst.getOpcode())))
return true;
- if (X86::optimizeShiftRotateWithImmediateOne(Inst))
+ if (AsmOptimize && X86::optimizeShiftRotateWithImmediateOne(Inst))
----------------
KanRobert wrote:
Do you still need this patch? If so, I guess you might need to change it to "x86-asm-vex3-to-vex2"?
https://github.com/llvm/llvm-project/pull/75895
More information about the llvm-commits
mailing list