[PATCH] D100788: [SystemZ] Support i128 inline asm operands
Jonas Paulsson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 5 04:16:39 PDT 2021
jonpa marked an inline comment as done.
jonpa added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:8568
+ const TargetRegisterClass *RC = nullptr;
+ if (RegVT == MVT::Untyped) {
+ const MachineFunction &MF = DAG.getMachineFunction();
----------------
uweigand wrote:
> Instead of recomputing the RC here, can't we get it from the flag word of the matching operand, e.g. using `hasRegClassConstraint(OpFlag, RCID)`? This would match the way we get the number of registers from the flag word instead of recomputing it as well.
No - the matching operand may be a specific physreg in which case there is no register class specified (e.g. SystemZ/asm-17.ll).
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100788/new/
https://reviews.llvm.org/D100788
More information about the llvm-commits
mailing list