[PATCH] D115373: [PowerPC][AIX] Fallback to DAG-ISEL if a global has toc-data attribute.

Sean Fertile via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 8 12:04:36 PST 2021


sfertile created this revision.
sfertile added reviewers: yousufhali, madanial, bmahjour.
Herald added subscribers: shchenz, kbarton, hiraditya.
sfertile requested review of this revision.
Herald added a project: LLVM.

FAST-ISEL should fall back to DAG-ISEL when a global variable has the toc-data attribute. A number of the 64-bit checks were 
duplicated in the lit test because of

1. Slightly different output between -O0 and -O2 due to FAST-ISEL vs DAG-ISEL codegen.
2. In preperation of a peephole optimization that will run when optimizations are enabled.

Also updates where we dump the mir since the `ppc-ctr-loops-verify` pass happens at a different time in the pipeline at -O0 when generating 32-bit code. I


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115373

Files:
  llvm/lib/Target/PowerPC/PPCFastISel.cpp
  llvm/test/CodeGen/PowerPC/toc-data.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115373.392853.patch
Type: text/x-patch
Size: 5099 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211208/273fbe71/attachment.bin>


More information about the llvm-commits mailing list