1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 12:02:58 +02:00
llvm-mirror/lib/Transforms/InstCombine
Sanjay Patel 8755396e8d [InstCombine] LogicOpc (zext X), C --> zext (LogicOpc X, C) (PR28476)
The benefits of this change include:
1. Remove DeMorgan-matching code that was added specifically to work-around 
   the missing transform in http://reviews.llvm.org/rL248634.
2. Makes the DeMorgan transform work for vectors too.
3. Fix PR28476: https://llvm.org/bugs/show_bug.cgi?id=28476

Extending this transform to other casts and other associative operators may
be useful too. See https://reviews.llvm.org/D22421 for a prerequisite for
doing that though.

Differential Revision: https://reviews.llvm.org/D22271

llvm-svn: 276221
2016-07-21 00:24:18 +00:00
..
CMakeLists.txt Use ADDITIONAL_HEADER_DIRS in all LLVM CMake projects. 2015-02-11 03:28:02 +00:00
InstCombineAddSub.cpp [InstCombine] fold add(zext(xor X, C), C) --> sext X when C is INT_MIN in the source type 2016-07-19 22:09:34 +00:00
InstCombineAndOrXor.cpp [InstCombine] LogicOpc (zext X), C --> zext (LogicOpc X, C) (PR28476) 2016-07-21 00:24:18 +00:00
InstCombineCalls.cpp [InstCombine] Masked loads with undef masks can fold to normal loads 2016-07-14 06:58:42 +00:00
InstCombineCasts.cpp [InstCombine] LogicOpc (zext X), C --> zext (LogicOpc X, C) (PR28476) 2016-07-21 00:24:18 +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 [InstCombine] Minor cleanup of cast simplification code [NFC] 2016-07-19 09:06:08 +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 [InstSimplify][InstCombine] don't crash when folding vector selects of icmp 2016-07-20 23:40:01 +00:00
InstCombineShifts.cpp add FIXME comment; NFC 2016-04-11 17:35:57 +00:00
InstCombineSimplifyDemanded.cpp don't repeat function names in comments; NFC 2016-07-14 20:54:43 +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] reassociate logic ops with constants separated by a zext 2016-07-16 15:20:19 +00:00
LLVMBuild.txt