1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00
llvm-mirror/lib/Transforms/InstCombine
Craig Topper f241c0c2b9 [InstCombine] Move the checks for pointer types in getMaskedTypeForICmpPair earlier in the function
I don't think there's any reason to have them scattered about and on all 4 operands. We already have an early check that both compares must be the same type. And within a given compare the LHS and RHS must have the same type. Beyond that I don't think there's anyway this function returns anything valid for pointer types. So let's just return early and be done with it.

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

llvm-svn: 311383
2017-08-21 21:00:45 +00:00
..
CMakeLists.txt [CMake] NFC. Updating CMake dependency specifications 2016-11-17 04:36:50 +00:00
InstCombineAddSub.cpp [InstCombine] Simplify pointer difference subtractions (GEP-GEP) where GEPs have other uses and one non-constant index 2017-07-27 18:27:11 +00:00
InstCombineAndOrXor.cpp [InstCombine] Move the checks for pointer types in getMaskedTypeForICmpPair earlier in the function 2017-08-21 21:00:45 +00:00
InstCombineCalls.cpp [X86][InstCombine] Add some simplifications for BZHI intrinsics 2017-07-31 18:52:15 +00:00
InstCombineCasts.cpp [InstCombine] Fix a weakness in canEvaluateZExtd around 'and' instructions 2017-08-21 16:04:11 +00:00
InstCombineCompares.cpp Remove checks for debug info intrinsics in use lists, NFC 2017-08-14 22:10:54 +00:00
InstCombineInternal.h Remove checks for debug info intrinsics in use lists, NFC 2017-08-14 22:10:54 +00:00
InstCombineLoadStoreAlloca.cpp Fix DebugLoc propagation for unreachable LoadInst 2017-07-19 01:27:24 +00:00
InstCombineMulDivRem.cpp [IR] Add Type::isIntOrIntVectorTy(unsigned) similar to the existing isIntegerTy(unsigned), but also works for vectors. 2017-07-09 07:04:03 +00:00
InstCombinePHI.cpp fix typos in comments; NFC 2017-07-11 06:04:59 +00:00
InstCombineSelect.cpp [InstCombine] Teach foldSelectICmpAnd to recognize a (icmp slt X, 0) and (icmp sgt X, -1) as equivalent to an and with the sign bit of the truncated type 2017-08-21 19:02:06 +00:00
InstCombineShifts.cpp [InstCombine] Added support for (X >>s C) << C --> X & (-1 << C) 2017-08-15 19:33:14 +00:00
InstCombineSimplifyDemanded.cpp [InstCombine] Remove unnecessary temporary APInt. NFCI 2017-08-02 21:05:40 +00:00
InstCombineVectorOps.cpp [InstCombine] Make InstCombine's IRBuilder be passed by reference everywhere 2017-07-07 23:16:26 +00:00
InstructionCombining.cpp Remove checks for debug info intrinsics in use lists, NFC 2017-08-14 22:10:54 +00:00
LLVMBuild.txt