[PATCH] D82678: [CGP] Set debug locations when optimizing phi types

Djordje Todorovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 15 02:46:34 PDT 2020


djtodoro added inline comments.


================
Comment at: llvm/lib/CodeGen/CodeGenPrepare.cpp:5908
           new BitCastInst(D, ConvertTy, D->getName() + ".bc", D->getNextNode());
+      N->setDebugLoc(D->getDebugLoc());
+      ValMap[D] = N;
----------------
I think this should be a separate patch with the test case covering this.


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

https://reviews.llvm.org/D82678



More information about the llvm-commits mailing list