[PATCH] [FastISel][X86] Constrain register operand class in foldOperandImpl
Pete Cooper
peter_cooper at apple.com
Mon Jun 8 19:14:25 PDT 2015
Sorry, Phab is acting up, so will use email.
This was in the original, but as your moving the code anyway, can you invert this to remove indentation, i.e.,
+ if (TargetRegisterInfo::isVirtualRegister(Op)) {
…
}
return Op
to
+ if (!TargetRegisterInfo::isVirtualRegister(Op))
return Op;
…
Similarly, can you make this a foreach loop:
for (unsigned i = 0; i != NumAddrOps; ++i) {
to
for (MachineOperand MO : MOs) {
Thanks for doing all this!
Cheers,
Pete
REPOSITORY
rL LLVM
http://reviews.llvm.org/D6262
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list