[PowerPC][AIX] Fallback to DAG-ISEL if global has toc-data attribute.
authorSean Fertile <sd.fertile@gmail.com>
Mon, 17 Jan 2022 21:20:28 +0000 (16:20 -0500)
committerSean Fertile <sd.fertile@gmail.com>
Mon, 17 Jan 2022 21:21:38 +0000 (16:21 -0500)
commit10d3bf951841321a4598b31f55c6f4a766703ed4
treece04f8bbd488a531035d53fc9456374f700154a7
parent964dc368e7c72ad5b7ab995c97920c4deb624631
[PowerPC][AIX] Fallback to DAG-ISEL if global has toc-data attribute.

FAST-ISEL should fall back to DAG-ISEL when a global variable has the
toc-data attribute. A number of the checks were duplicated in the lit
test becuase 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.

Differential Revision: https://reviews.llvm.org/D115373
llvm/lib/Target/PowerPC/PPCFastISel.cpp
llvm/test/CodeGen/PowerPC/toc-data.ll