[llvm] 7cf887b - [VE] Fix SDNode user loop after efa896e5f7
Simon Moll via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 15 00:58:16 PST 2021
Author: Simon Moll
Date: 2021-11-15T09:53:09+01:00
New Revision: 7cf887b9501ea90f9890dad8127d1404c6e34f94
URL: https://github.com/llvm/llvm-project/commit/7cf887b9501ea90f9890dad8127d1404c6e34f94
DIFF: https://github.com/llvm/llvm-project/commit/7cf887b9501ea90f9890dad8127d1404c6e34f94.diff
LOG: [VE] Fix SDNode user loop after efa896e5f7
Rewriting SDNode user loops broke VEISelLowering (commit efa896e5f7).
This fixes it.
Added:
Modified:
llvm/lib/Target/VE/VEISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/VE/VEISelLowering.cpp b/llvm/lib/Target/VE/VEISelLowering.cpp
index 3c21e9d9f6421..32315543826a1 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:
More information about the llvm-commits
mailing list