llvm.org GIT mirror llvm / 4633bbb
[NVPTX] Don't flag StoreRetVal memory chain operands as ReadMem (PR32146) This fixes 47 of the 75 NVPTX '-verify-machineinstrs with EXPENSIVE_CHECKS' errors in PR32146. Differential Revision: https://reviews.llvm.org/D33147 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302942 91177308-0d34-0410-b5e6-96231b3b80d8 Simon Pilgrim 3 years ago
4 changed file(s) with 6 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
25772577 EVT TheStoreType = ExtendIntegerRetVal ? MVT::i32 : VTs[i];
25782578 Chain = DAG.getMemIntrinsicNode(Op, dl, DAG.getVTList(MVT::Other),
25792579 StoreOperands, TheStoreType,
2580 MachinePointerInfo(), 1);
2580 MachinePointerInfo(), /* Align */ 1,
2581 /* Volatile */ false, /* ReadMem */ false,
2582 /* WriteMem */ true, /* Size */ 0);
25812583 // Cleanup vector state.
25822584 StoreOperands.clear();
25832585 }
None ; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
0 ; RUN: llc < %s -march=nvptx -mcpu=sm_20 -verify-machineinstrs | FileCheck %s
11
22 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v32:32:32-v64:64:64-v128:128:128-n16:32:64"
33
None ; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
0 ; RUN: llc < %s -march=nvptx -mcpu=sm_20 -verify-machineinstrs | FileCheck %s
11
22 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v32:32:32-v64:64:64-v128:128:128-n16:32:64"
33
None ; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
1
0 ; RUN: llc < %s -march=nvptx -mcpu=sm_20 -verify-machineinstrs | FileCheck %s
21
32 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v32:32:32-v64:64:64-v128:128:128-n16:32:64"
43