summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetMachine.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-08-14 00:24:38 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-08-14 00:24:38 +0000
commit9e3a6ca6985b7a6fb7dc5432267d1ea78315c035 (patch)
tree1cfeaca19cbf78977119b893026d65065ea4b874 /llvm/lib/Target/TargetMachine.cpp
parentfc00f7eabd53f44ac31db3f80baf4d272c452796 (diff)
downloadbcm5719-llvm-9e3a6ca6985b7a6fb7dc5432267d1ea78315c035.tar.gz
bcm5719-llvm-9e3a6ca6985b7a6fb7dc5432267d1ea78315c035.zip
Fix always creating GEP with i32 indices
Use the pointer size if datalayout is available. Use i64 if it's not, which is consistent with what other places do when the pointer size is unknown. The test doesn't really test this in a useful way since it will be transformed to that later anyway, but this now tests it for non-zero arrays and when datalayout isn't available. The cases in visitGetElementPtrInst should save an extra re-visit to the newly created GEP since it won't need to cleanup after itself. llvm-svn: 188339
Diffstat (limited to 'llvm/lib/Target/TargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud