diff options
author | Dale Johannesen <dalej@apple.com> | 2010-10-26 23:11:10 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2010-10-26 23:11:10 +0000 |
commit | e660f4d072cfd456e9a74fb9c78a1d8adb76ab99 (patch) | |
tree | e3b7bb892f336b4db15f6b7ad597e6cc01a9fc35 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 5f88cc34e14dc3901628cf9642db61308e14746d (diff) | |
download | bcm5719-llvm-e660f4d072cfd456e9a74fb9c78a1d8adb76ab99.tar.gz bcm5719-llvm-e660f4d072cfd456e9a74fb9c78a1d8adb76ab99.zip |
Use a MemIntrinsicSDNode for ISD::PREFETCH, which touches
memory, so a MachineMemOperand is useful (not propagated
into the MachineInstr yet). No functional change except
for dump output.
llvm-svn: 117413
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index ac6a64ec6b8..3019e764e05 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -3829,6 +3829,7 @@ SelectionDAG::getMemIntrinsicNode(unsigned Opcode, DebugLoc dl, SDVTList VTList, EVT MemVT, MachineMemOperand *MMO) { assert((Opcode == ISD::INTRINSIC_VOID || Opcode == ISD::INTRINSIC_W_CHAIN || + Opcode == ISD::PREFETCH || (Opcode <= INT_MAX && (int)Opcode >= ISD::FIRST_TARGET_MEMORY_OPCODE)) && "Opcode is not a memory-accessing opcode!"); |