[PATCH] D125659: [SelectionDAG] Make getNode which uses single element SDVTList pass SDNodeFlags.
Yeting Kuo via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun May 15 21:41:52 PDT 2022
fakepaper56 created this revision.
fakepaper56 added a reviewer: craig.topper.
Herald added subscribers: StephenFan, ecnelises, hiraditya.
Herald added a project: All.
fakepaper56 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
The patch make users not need to know getNode with SDNodeFlags argument may not
pass its flags.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D125659
Files:
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
===================================================================
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -8913,7 +8913,7 @@
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125659.429603.patch
Type: text/x-patch
Size: 591 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220516/309efad0/attachment.bin>
More information about the llvm-commits
mailing list