[PATCH] D38640: [WebAssembly] Narrow the scope of WebAssemblyFixFunctionBitcasts

Derek Schuff via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 6 16:38:48 PDT 2017


dschuff added inline comments.


================
Comment at: lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp:72
+      Instruction *I = dyn_cast<Instruction>(U.getUser());
+      if (!I || I->getOpcode() != Instruction::Call)
+        // Skip uses that aren't immediately called
----------------
How about invoke? Also, are we filtering out intrinsics anywhere? (An `IntrinsicInst` is a `CallInst` but I forget if its opcode is `Instruction::Call` or not)


https://reviews.llvm.org/D38640





More information about the llvm-commits mailing list