1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 04:22:57 +02:00
llvm-mirror/lib/Transforms/InstCombine
Sanjay Patel 437bb9ba7e [InstCombine] shrink switch conditions better (PR24766)
https://llvm.org/bugs/show_bug.cgi?id=24766#c2

This removes a hack that was added for the benefit of x86 codegen. 
It prevented shrinking the switch condition even to smaller legal (DataLayout) types.
We have a safety mechanism in CGP after:
http://reviews.llvm.org/rL251857
...so we're free to use the optimal (smallest) IR type now.

Differential Revision: http://reviews.llvm.org/D12965

llvm-svn: 274233
2016-06-30 14:51:21 +00:00
..
CMakeLists.txt Use ADDITIONAL_HEADER_DIRS in all LLVM CMake projects. 2015-02-11 03:28:02 +00:00
InstCombineAddSub.cpp Apply clang-tidy's modernize-loop-convert to most of lib/Transforms. 2016-06-26 12:28:59 +00:00
InstCombineAndOrXor.cpp [InstCombine] use ConstantExpr::getBitCast() instead of creating useless instruction 2016-06-30 14:27:41 +00:00
InstCombineCalls.cpp InstCombine: Don't strip convergent from intrinsic callsites 2016-06-20 19:04:44 +00:00
InstCombineCasts.cpp Revert "[InstCombine] Avoid combining the bitcast of a var that is used as both address and result of load instructions" 2016-06-29 03:05:58 +00:00
InstCombineCompares.cpp Avoid copies of std::strings and APInt/APFloats where we only read from it 2016-06-08 10:01:20 +00:00
InstCombineInternal.h Revert "[InstCombine] Avoid combining the bitcast of a var that is used as both address and result of load instructions" 2016-06-29 03:05:58 +00:00
InstCombineLoadStoreAlloca.cpp [InstCombine] Don't widen metadata on store-to-load forwarding 2016-06-16 02:33:42 +00:00
InstCombineMulDivRem.cpp [InstCombine] shrink type of sdiv if dividend is sexted and constant divisor is small enough (PR28153) 2016-06-27 22:27:11 +00:00
InstCombinePHI.cpp [InstCombine] Preserve fast math flags when combining PHIs 2016-04-22 11:21:36 +00:00
InstCombineSelect.cpp [InstCombine] allow more than one use for vector bitcast folding with selects 2016-06-17 16:46:50 +00:00
InstCombineShifts.cpp add FIXME comment; NFC 2016-04-11 17:35:57 +00:00
InstCombineSimplifyDemanded.cpp Apply most suggestions of clang-tidy's performance-unnecessary-value-param 2016-06-08 19:09:22 +00:00
InstCombineVectorOps.cpp [InstCombine] scalarizePHI should not assume the code it sees has been CSE'd 2016-06-06 23:38:33 +00:00
InstructionCombining.cpp [InstCombine] shrink switch conditions better (PR24766) 2016-06-30 14:51:21 +00:00
LLVMBuild.txt Update libdeps since TLI was moved from Target to Analysis in r226078. 2015-01-15 05:21:00 +00:00