mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[InlineAsm] Don't calculate registers for inline asm memory operands. NFCI.
llvm-svn: 352066
This commit is contained in:
parent
53abe58d1c
commit
89f6dbd753
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user