[VE] Fix SDNode user loop after efa896e5f7
authorSimon Moll <simon.moll@emea.nec.com>
Mon, 15 Nov 2021 08:53:09 +0000 (09:53 +0100)
committerSimon Moll <simon.moll@emea.nec.com>
Mon, 15 Nov 2021 08:53:09 +0000 (09:53 +0100)
Rewriting SDNode user loops broke VEISelLowering (commit efa896e5f7).
This fixes it.

llvm/lib/Target/VE/VEISelLowering.cpp

index 3c21e9d..3231554 100644 (file)
@@ -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: