[PATCH] D91933: [X86] Do not allow FixupSetCC to relax constraints

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 26 06:36:56 PST 2020


RKSimon 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;
----------------
Add a comment for this early-out


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