[PATCH] D144776: [X86][MC] Early bail out in emitREXPrefix, NFCI
Phoebe Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 25 03:16:40 PST 2023
pengfei added inline comments.
================
Comment at: llvm/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp:1207
+ llvm_unreachable("Unexpected form in emitREXPrefix!");
+ case X86II::RawFrmMemOffs:
+ case X86II::RawFrmSrc:
----------------
Not sure others, but should this be unreachable too?
================
Comment at: llvm/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp:1263
}
PrefixKind Kind = Prefix.determineOptimalKind();
if (Kind && UsesHighByteReg)
----------------
Move this ahead?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144776/new/
https://reviews.llvm.org/D144776
More information about the llvm-commits
mailing list