Skip to content
  1. Oct 15, 2018
    • Chandler Carruth's avatar
      [TI removal] Make variables declared as `TerminatorInst` and initialized · edb12a83
      Chandler Carruth authored
      by `getTerminator()` calls instead be declared as `Instruction`.
      
      This is the biggest remaining chunk of the usage of `getTerminator()`
      that insists on the narrow type and so is an easy batch of updates.
      Several files saw more extensive updates where this would cascade to
      requiring API updates within the file to use `Instruction` instead of
      `TerminatorInst`. All of these were trivial in nature (pervasively using
      `Instruction` instead just worked).
      
      llvm-svn: 344502
      edb12a83
    • Chandler Carruth's avatar
      [TI removal] Remove `TerminatorInst` from GVN.h and GVN.cpp. · ae98759e
      Chandler Carruth authored
      This is the last interesting usage in all of LLVM's headers. The
      remaining usages in headers are the core typesystem bits (Core.h,
      instruction types, and InstVisitor) and as the return of
      `BasicBlock::getTerminator`. The latter is the big remaining API point
      that I'll remove after mass updates to user code.
      
      llvm-svn: 344501
      ae98759e
    • Chandler Carruth's avatar
      [TI removal] Remove `TerminatorInst` from BasicBlockUtils.h · 4a2d58e1
      Chandler Carruth authored
      This requires updating a number of .cpp files to adapt to the new API.
      I've just systematically updated all uses of `TerminatorInst` within
      these files te `Instruction` so thta I won't have to touch them again in
      the future.
      
      llvm-svn: 344498
      4a2d58e1
    • Chandler Carruth's avatar
      [TI removal] Remove TerminatorInst as an input parameter from all public · b99a2468
      Chandler Carruth authored
      LLVM APIs. There weren't very many.
      
      We still have the instruction visitor, and APIs with TerminatorInst as
      a return type or an output parameter.
      
      llvm-svn: 344494
      b99a2468
    • Bjorn Pettersson's avatar
      [TwoAddressInstructionPass] Replace subregister uses when processing tied operands · 06494435
      Bjorn Pettersson authored
      Summary:
      TwoAddressInstruction pass typically rewrites
        %1:short = foo %0.sub_lo:long
      as
        %1:short = COPY %0.sub_lo:long
        %1:short = foo %1:short
      when having tied operands.
      
      If there are extra un-tied operands that uses the same reg and
      subreg, such as the second and third inputs to fie here:
        %1:short = fie %0.sub_lo:long, %0.sub_hi:long, %0.sub_lo:long
      then there was a bug which replaced the register %0 also for
      the un-tied operand, but without changing the subregister indices.
      So we used to get:
        %1:short = COPY %0.sub_lo:long
        %1:short = fie %1, %1.sub_hi:short, %1.sub_lo:short
      With this fix we instead get:
        %1:short = COPY %0.sub_lo:long
        %1:short = fie %1, %0.sub_hi:long, %1
      
      Reviewers: arsenm, JesperAntonsson, kparzysz, MatzeB
      
      Reviewed By: MatzeB
      
      Subscribers: bjope, kparzysz, wdng, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D36224
      
      llvm-svn: 344492
      06494435
    • Lang Hames's avatar
      [ORC] Simplify naming for JITDylib definition generators. · a5157d6f
      Lang Hames authored
      Renames:
        JITDylib's setFallbackDefinitionGenerator method to setGenerator.
        DynamicLibraryFallbackGenerator class to DynamicLibrarySearchGenerator.
        ReexportsFallbackDefinitionGenerator to ReexportsGenerator.
      
      llvm-svn: 344489
      a5157d6f
    • Craig Topper's avatar
      [X86] Move promotion of vector and/or/xor from legalization to DAG combine · 06aea172
      Craig Topper authored
      Summary:
      I've noticed that the bitcasts we introduce for these make computeKnownBits and computeNumSignBits not work well in LegalizeVectorOps. LegalizeVectorOps legalizes bottom up while LegalizeDAG legalizes top down. The bottom up strategy for LegalizeVectorOps means operands are legalized before their uses. So we promote and/or/xor before we legalize the operands that use them making computeKnownBits/computeNumSignBits in places like LowerTruncate suboptimal. I looked at changing LegalizeVectorOps to be top down as well, but that was more disruptive and caused some regressions. I also looked at just moving promotion of binops to LegalizeDAG, but that had a few issues one around matching AND,ANDN,OR into VSELECT because I had to create ANDN as vXi64, but the other nodes hadn't legalized yet, I didn't look too hard at fixing that.
      
      This patch seems to produce better results overall than my other attempts. We now form broadcasts of constants better in some cases. For at least some of them the AND was being introduced in LegalizeDAG, promoted to vXi64, and the BUILD_VECTOR was also legalized there. I think we got bad ordering of that. Now the promotion is out of the legalizer so we handle this better.
      
      In the longer term I think we really should evaluate whether we should be doing this promotion at all. It's really there to reduce isel pattern count, but I'm wondering if we'd be better served just eating the pattern cost or doing C++ based isel for vector and/or/xor in X86ISelDAGToDAG. The masked and/or/xor will definitely be difficult in patterns if a bitcast gets between the vselect and the and/or/xor node. That becomes a lot of permutations to cover.
      
      Reviewers: RKSimon, spatel
      
      Reviewed By: RKSimon
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D53107
      
      llvm-svn: 344487
      06aea172
    • Craig Topper's avatar
      [X86] Add 128 MOVDDUP to the constant pool printing in X86AsmPrinter::EmitInstruction. · 67177945
      Craig Topper authored
      We use this instruction to broadcast a single 64-bit value to a v2i64/v2f64 vector.
      
      llvm-svn: 344486
      67177945
  2. Oct 14, 2018
  3. Oct 13, 2018
Loading