projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c3e51e
)
[SelectionDAG] Make getNode which uses single element SDVTList pass SDNodeFlags.
author
Yeting Kuo
<yeting.kuo@sifive.com>
Mon, 16 May 2022 03:56:31 +0000
(11:56 +0800)
committer
Yeting Kuo
<yeting.kuo@sifive.com>
Mon, 16 May 2022 10:19:46 +0000
(18:19 +0800)
The patch make users not need to know getNode with SDNodeFlags argument may not
pass its flags.
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D125659
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index
fc3a19f
..
d654688
100644
(file)
--- a/
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@
-8913,7
+8913,7
@@
SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, SDVTList VTList,
SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, SDVTList VTList,
ArrayRef<SDValue> Ops, const SDNodeFlags Flags) {
if (VTList.NumVTs == 1)
- return getNode(Opcode, DL, VTList.VTs[0], Ops);
+ return getNode(Opcode, DL, VTList.VTs[0], Ops
, Flags
);
#ifndef NDEBUG
for (auto &Op : Ops)