[PATCH] D109607: [X86] Refactor GetSSETypeAtOffset to fix pr51813

LuoYuanke via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 12 20:50:51 PDT 2021


LuoYuanke added inline comments.


================
Comment at: clang/lib/CodeGen/TargetInfo.cpp:3417
+  llvm::Type *T1 = getFPTypeAtOffset(IRType, IROffset + NextFP, TD);
+  if (T1 == nullptr) {
+    if (NextFP == 2)
----------------
Would you add comments on each case like previous code?


================
Comment at: clang/lib/CodeGen/TargetInfo.cpp:3454
-
-    return llvm::Type::getHalfTy(getVMContext());
-  }
----------------
Is this the major change?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109607/new/

https://reviews.llvm.org/D109607



More information about the cfe-commits mailing list