1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/lib/Transforms/InstCombine
Matt Arsenault cb3b478d91 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
2013-08-14 00:24:38 +00:00
..
CMakeLists.txt Tidy up a bit. No functional change. 2013-04-05 21:20:12 +00:00
InstCombine.h Reapply with r182909 with a fix to the calculation of the new indices for 2013-05-31 00:59:42 +00:00
InstCombineAddSub.cpp Preserve fast-math flags when folding (fsub x, (fneg y)) to (fadd x, y). 2013-07-30 23:53:17 +00:00
InstCombineAndOrXor.cpp Use SmallVectorImpl& instead of SmallVector to avoid repeating small vector size. 2013-07-14 04:42:23 +00:00
InstCombineCalls.cpp Change behavior of calling bitcasted alias functions. 2013-07-30 20:45:05 +00:00
InstCombineCasts.cpp Use type helper functions instead of cast 2013-08-14 00:24:34 +00:00
InstCombineCompares.cpp InstCombine: Fix typo in comment for visitICmpInstWithInstAndIntCst 2013-07-09 09:24:35 +00:00
InstCombineLoadStoreAlloca.cpp Fix always creating GEP with i32 indices 2013-08-14 00:24:38 +00:00
InstCombineMulDivRem.cpp Correct case of m_UIToFp to m_UIToFP to match instruction name, add m_SIToFP for consistency. 2013-07-26 17:55:00 +00:00
InstCombinePHI.cpp Tidy up a bit. No functional change. 2013-04-05 21:20:12 +00:00
InstCombineSelect.cpp InstCombine: Also turn selects fed by an and into arithmetic when the types don't match. 2013-06-29 21:17:04 +00:00
InstCombineShifts.cpp Revert r174152. The shift amount may overflow and in that case this transformation is illegal. 2013-02-01 07:59:33 +00:00
InstCombineSimplifyDemanded.cpp InstCombine: Don't just copy known bits from the first operand of an srem. 2013-05-09 16:32:32 +00:00
InstCombineVectorOps.cpp Fix a crash in EvaluateInDifferentElementOrder where it would generate an 2013-07-12 23:08:06 +00:00
InstCombineWorklist.h Fix missing -*- C++ -*-s 2013-08-06 00:16:21 +00:00
InstructionCombining.cpp Fix always creating GEP with i32 indices 2013-08-14 00:24:38 +00:00
LLVMBuild.txt LLVMBuild: Remove trailing newline, which irked me. 2011-12-12 19:48:00 +00:00
Makefile