[PATCH] D91933: [X86] Do not allow FixupSetCC to relax constraints
Harald van Dijk via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 26 14:21:52 PST 2020
hvdijk marked an inline comment as done.
hvdijk added inline comments.
================
Comment at: llvm/lib/Target/X86/X86FixupSetCC.cpp:104
: &X86::GR32_ABCDRegClass;
- Register ZeroReg = MRI->createVirtualRegister(RC);
- Register InsertReg = MRI->createVirtualRegister(RC);
+ if (!MRI->constrainRegClass(ZExt->getOperand(0).getReg(), RC))
+ continue;
----------------
RKSimon wrote:
> Add a comment for this early-out
Sure, done.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91933/new/
https://reviews.llvm.org/D91933
More information about the llvm-commits
mailing list