Make constant arrays that are passed to functions as const.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 7 Mar 2015 17:41:00 +0000 (17:41 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 7 Mar 2015 17:41:00 +0000 (17:41 +0000)
commit867bfc53ee5424b467302f319a1a9215ca7f1752
tree35427a9447e8995de9812bca3171edfad8f28b79
parentc6bf34418acc32f220ed352246e0768fe250550f
Make constant arrays that are passed to functions as const.

In theory this allows the compiler to skip materializing the array on
the stack. In practice clang often fails to do that, but that's a
different story. NFC.

llvm-svn: 231571
llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
llvm/lib/MC/MCELFStreamer.cpp
llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
llvm/lib/Target/R600/SIISelLowering.cpp
llvm/lib/Target/X86/X86SelectionDAGInfo.cpp