1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

[InlineAsm] Don't calculate registers for inline asm memory operands. NFCI.

llvm-svn: 352066
This commit is contained in:
Nirav Dave 2019-01-24 17:47:18 +00:00
parent 53abe58d1c
commit 89f6dbd753

View File

@ -7345,6 +7345,10 @@ static void GetRegistersForValue(SelectionDAG &DAG, const SDLoc &DL,
SmallVector<unsigned, 4> Regs;
const TargetRegisterInfo &TRI = *MF.getSubtarget().getRegisterInfo();
// No work to do for memory operations.
if (OpInfo.ConstraintType == TargetLowering::C_Memory)
return;
// If this is a constraint for a single physreg, or a constraint for a
// register class, find it.
unsigned AssignedReg;