llvm-project/llvm/lib/Transforms/InstCombine
Sanjay Patel 2552f65183 [InstCombine] fold mask op into casted shift (PR46013)
https://rise4fun.com/Alive/Qply8

  Pre: C2 == (-1 u>> zext(C1))
  %a = ashr %x, C1
  %s = sext %a to i16
  %r = and i16 %s, C2
    =>
  %s2 = sext %x to i16
  %r = lshr i16 %s2, zext(C1)

https://bugs.llvm.org/show_bug.cgi?id=46013
2020-06-07 09:33:18 -04:00
..
CMakeLists.txt [InstCombine] Negator - sink sinkable negations 2020-04-21 22:00:23 +03:00
InstCombineAddSub.cpp [InstCombine] reassociate sub+add to increase adds and throughput 2020-05-26 14:49:17 -04:00
InstCombineAndOrXor.cpp [InstCombine] fold mask op into casted shift (PR46013) 2020-06-07 09:33:18 -04:00
InstCombineAtomicRMW.cpp [NFC] Modernize misc. uses of Align/MaybeAlign APIs. 2020-04-06 17:53:04 -07:00
InstCombineCalls.cpp [Instruction] Remove setProfWeight() 2020-06-04 15:10:55 +07:00
InstCombineCasts.cpp [SVE] Eliminate calls to default-false VectorType::get() from InstCombine 2020-05-29 15:31:31 -07:00
InstCombineCompares.cpp Return "[InstCombine] Simplify compare of Phi with constant inputs against a constant" 2020-06-05 20:48:29 +07:00
InstCombineInternal.h [InstCombine] fix use of base VectorType; NFC 2020-06-01 14:28:31 -04:00
InstCombineLoadStoreAlloca.cpp [InstCombine] Remove unnecessary MaybeAlign use (NFC) 2020-06-06 11:44:01 +02:00
InstCombineMulDivRem.cpp [SVE] Fix invalid usage of getNumElements() in InstCombineMulDivRem 2020-05-05 15:19:01 -07:00
InstCombineNegator.cpp [NFC] InstCombineNegator: use auto where type is obvious from the cast 2020-05-22 11:14:54 +03:00
InstCombinePHI.cpp LoadInst should store Align, not MaybeAlign. 2020-05-14 13:19:21 -07:00
InstCombineSelect.cpp [InstCombine] avoid crashing on select-shuffle detection 2020-06-04 17:27:14 -04:00
InstCombineShifts.cpp [SVE] Update API ConstantVector::getSplat() to use ElementCount. 2020-03-12 13:22:41 -07:00
InstCombineSimplifyDemanded.cpp [SVE] Eliminate calls to default-false VectorType::get() from InstCombine 2020-05-29 15:31:31 -07:00
InstCombineTables.td
InstCombineVectorOps.cpp [SVE] Eliminate calls to default-false VectorType::get() from InstCombine 2020-05-29 15:31:31 -07:00
InstructionCombining.cpp PR34581: Don't remove an 'if (p)' guarding a call to 'operator delete(p)' under -Oz. 2020-06-05 17:13:43 -07:00
LLVMBuild.txt Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00