[PATCH] D46582: [PowerPC] Fix label address calculation for ppc32

Hal Finkel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 23 08:00:31 PDT 2018


hfinkel added inline comments.


================
Comment at: lib/Target/PowerPC/PPCISelLowering.cpp:2570
+  if (Subtarget.isSVR4ABI() && isPositionIndependent()) {
     setUsesTOCBasePtr(DAG);
     SDValue GA = DAG.getTargetBlockAddress(BA, PtrVT, BASDN->getOffset());
----------------
I don't think that we should be calling setUsesTOCBasePtr outside of 64-bit code.


Repository:
  rL LLVM

https://reviews.llvm.org/D46582





More information about the llvm-commits mailing list