From 7cf887b9501ea90f9890dad8127d1404c6e34f94 Mon Sep 17 00:00:00 2001 From: Simon Moll Date: Mon, 15 Nov 2021 09:53:09 +0100 Subject: [PATCH] [VE] Fix SDNode user loop after efa896e5f7 Rewriting SDNode user loops broke VEISelLowering (commit efa896e5f7). This fixes it. --- llvm/lib/Target/VE/VEISelLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/VE/VEISelLowering.cpp b/llvm/lib/Target/VE/VEISelLowering.cpp index 3c21e9d..3231554 100644 --- a/llvm/lib/Target/VE/VEISelLowering.cpp +++ b/llvm/lib/Target/VE/VEISelLowering.cpp @@ -2513,7 +2513,7 @@ static bool isI32Insn(const SDNode *User, const SDNode *N) { default: // If the use is an instruction which treats the source operand as i32, // it is safe to avoid truncate here. - if (isI32Insn(*UI, N)) + if (isI32Insn(U, N)) continue; break; case ISD::ANY_EXTEND: -- 2.7.4