[llvm] 26a61ab - [SelectionDAG] Make getNode which uses single element SDVTList pass SDNodeFlags.
Yeting Kuo via llvm-commits
llvm-commits at lists.llvm.org
Mon May 16 03:19:52 PDT 2022
Author: Yeting Kuo
Date: 2022-05-16T18:19:46+08:00
New Revision: 26a61ab6789fdcc3ad094f09e19e5d653bb86e36
URL: https://github.com/llvm/llvm-project/commit/26a61ab6789fdcc3ad094f09e19e5d653bb86e36
DIFF: https://github.com/llvm/llvm-project/commit/26a61ab6789fdcc3ad094f09e19e5d653bb86e36.diff
LOG: [SelectionDAG] Make getNode which uses single element SDVTList pass SDNodeFlags.
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
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index fc3a19f4a9f5..d65468860b28 100644
--- 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)
More information about the llvm-commits
mailing list