Skip to content
  1. Mar 26, 2013
    • Ulrich Weigand's avatar
      PowerPC: Remove ADDIL patterns. · 35f9fdfd
      Ulrich Weigand authored
      The ADDI/ADDI8 patterns are currently duplicated into ADDIL/ADDI8L,
      which describe the same instruction, except that they accept a
      symbolLo[64] operand instead of a s16imm[64] operand.
      
      This duplication confuses the asm parser, and it actually not really
      needed, since symbolLo[64] already accepts immediate operands anyway.
      So this commit removes the duplicate patterns.
      
      No change in generated code.
      
      llvm-svn: 178004
      35f9fdfd
    • Ulrich Weigand's avatar
      PowerPC: Use CCBITRC operand for ISEL patterns. · 4749b1ec
      Ulrich Weigand authored
      This commit changes the ISEL patterns to use a CCBITRC operand
      instead of a "pred" operand.  This matches the actual instruction
      text more directly, and simplifies use of ISEL with the asm parser.
      In addition, this change allows some simplification of handling
      the "pred" operand, as this is now only used by BCC.
      
      No change in generated code.
      
      llvm-svn: 178003
      4749b1ec
    • Ulrich Weigand's avatar
      PowerPC: Simplify BLR pattern. · 63aa852a
      Ulrich Weigand authored
      The BLR pattern cannot be recognized by the asm parser in its current form.
      This complexity is due to an apparent attempt to enable conditional BLR
      variants.  However, none of those can ever be generated by current code;
      the pattern is only ever created using the default "pred" operand.
      
      To simplify the pattern and allow it to be recognized by the parser,
      this commit removes those attempts at conditional BLR support.
      
      When we later come back to actually add real conditional BLR, this
      should probably be done via a fully generic conditional branch pattern.
      
      No change in generated code.
      
      llvm-svn: 178002
      63aa852a
    • Ulrich Weigand's avatar
      PowerPC: Move some 64-bit branch patterns. · 410a40bb
      Ulrich Weigand authored
      In PPCInstr64Bit.td, some branch patterns appear in a different sequence
      than the corresponding 32-bit patterns in PPCInstrInfo.td.
      
      To simplify future changes that affect both files, this commit moves
      those patterns to rearrange them into a similar sequence.
      
      No effect on generated code.
      
      llvm-svn: 178001
      410a40bb
    • Christian Konig's avatar
      R600: fix DenseMap with pointer key iteration in the structurizer · 90b45124
      Christian Konig authored
      
      
      Use a MapVector on types where the iteration order matters.
      Otherwise we doesn't always produce a deterministic output.
      
      Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
      Reviewed-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
      llvm-svn: 177999
      90b45124
    • Alexey Samsonov's avatar
      Add asan/msan to the list of available features in LIT test runner · 3a9d5039
      Alexey Samsonov authored
      llvm-svn: 177994
      3a9d5039
    • Alexey Samsonov's avatar
      Add CMake option LLVM_USE_SANITIZER={Address,Memory,MemoryWithOrigins} to... · 75789a21
      Alexey Samsonov authored
      Add CMake option LLVM_USE_SANITIZER={Address,Memory,MemoryWithOrigins} to simplify bootstrap of LLVM/Clang under ASan/MSan
      
      llvm-svn: 177992
      75789a21
    • Chandler Carruth's avatar
      Manually update the dependencies in the Makefiles. It turns out that all · 60d7006e
      Chandler Carruth authored
      that work on the LLVMBuild based dependency specification didn't
      actually work, we just now maintain dependencies in *3* places instead
      of 2. Yay.
      
      There may still be some missing dependencies, I'm still sifting through
      the bots and my builds, but this is a step in the right direction.
      
      llvm-svn: 177988
      60d7006e
    • Andrew Trick's avatar
      Fix SCEV forgetMemoizedResults should search and destroy backedge exprs. · 9093e150
      Andrew Trick authored
      Fixes PR15570: SEGV: SCEV back-edge info invalid after dead code removal.
      
      Indvars creates a SCEV expression for the loop's back edge taken
      count, then determines that the comparison is always true and
      removes it.
      
      When loop-unroll asks for the expression, it contains a NULL
      SCEVUnknkown (as a CallbackVH).
      
      forgetMemoizedResults should invalidate the loop back edges expression.
      
      llvm-svn: 177986
      9093e150
    • Chandler Carruth's avatar
      Split out the IRReader header and the utility functions it provides into · e60e57be
      Chandler Carruth authored
      its own library. These functions are bridging between the bitcode reader
      and the ll parser which are in different libraries. Previously we didn't
      have any good library to do this, and instead played fast and loose with
      a "header only" set of interfaces in the Support library. This really
      doesn't work well as evidenced by the recent attempt to add timing logic
      to the these routines.
      
      As part of this, make them normal functions rather than weird inline
      functions, and sink the implementation into the library. Also clean up
      the header to be nice and minimal.
      
      This requires updating lots of build system dependencies to specify that
      the IRReader library is needed, and several source files to not
      implicitly rely upon the header file to transitively include all manner
      of other headers.
      
      If you are using IRReader.h, this commit will break you (the header
      moved) and you'll need to also update your library usage to include
      'irreader'. I will commit the corresponding change to Clang momentarily.
      
      llvm-svn: 177971
      e60e57be
    • Arnold Schwaighofer's avatar
      ARM Scheduler Model: Add resources instructions, map resources in subtargets · ce639261
      Arnold Schwaighofer authored
      Move the CortexA9 resources into the CortexA9 SchedModel namespace. Define
      resource mappings under the CortexA9 SchedModel. Define resources and mappings
      for the SwiftModel.
      
      llvm-svn: 177968
      ce639261
    • Arnold Schwaighofer's avatar
      ARM Scheduler Model: Partial implementation of the new machine scheduler model · fb1dddcc
      Arnold Schwaighofer authored
      This is very much work in progress. Please send me a note if you start to depend
      on the added abstract read/write resources. They are subject to change until
      further notice.
      
      The old itinerary is still the default.
      
      llvm-svn: 177967
      fb1dddcc
    • Nick Lewycky's avatar
      Add missing file to cmake build. · 8d971626
      Nick Lewycky authored
      llvm-svn: 177963
      8d971626
    • Nick Lewycky's avatar
      Add a new watchdog timer interface. The interface does not permit handling timeouts, so · 4e06def8
      Nick Lewycky authored
      it's only really useful if you're going to crash anyways. Use it in the pretty stack trace
      printer to kill the compiler if we hang while printing the stack trace.
      
      llvm-svn: 177962
      4e06def8
    • Bill Wendling's avatar
      Remove testcase. It's failing on some platforms but not others. · 1ee6d8ce
      Bill Wendling authored
      llvm-svn: 177956
      1ee6d8ce
    • Bill Wendling's avatar
      Hmm...not failing...odd · d78cfa81
      Bill Wendling authored
      llvm-svn: 177955
      d78cfa81
    • Bill Wendling's avatar
      Temporarily XFAIL this test until Michael can look at it. · a5a44d4f
      Bill Wendling authored
      llvm-svn: 177953
      a5a44d4f
    • Michael Gottesman's avatar
      [ObjCARC Annotations] Added support for displaying the state of pointers at... · cd4de0f9
      Michael Gottesman authored
      [ObjCARC Annotations] Added support for displaying the state of pointers at the bottom/top of BBs of the ARC dataflow analysis for both bottomup and topdown analyses.
      
      This will allow for verification and analysis of the merge function of
      the data flow analyses in the ARC optimizer.
      
      The actual implementation of this feature is by introducing calls to
      the functions llvm.arc.annotation.{bottomup,topdown}.{bbstart,bbend}
      which are only declared. Each such call takes in a pointer to a global
      with the same name as the pointer whose provenance is being tracked and
      a pointer whose name is one of our Sequence states and points to a
      string that contains the same name.
      
      To ensure that the optimizer does not consider these annotations in any
      way, I made it so that the annotations are considered to be of IC_None
      type.
      
      A test case is included for this commit and the previous
      ObjCARCAnnotation commit.
      
      llvm-svn: 177952
      cd4de0f9
    • Michael Gottesman's avatar
      [ObjCARC Annotations] Implemented ARC annotation metadata to expose the ARC... · 81b1d437
      Michael Gottesman authored
      [ObjCARC Annotations] Implemented ARC annotation metadata to expose the ARC data flow analysis state in the IR via metadata.
      
      Previously the inner works of the data flow analysis in ObjCARCOpts was hard to
      get out of the optimizer for analysis of bugs or testing. All of the current ARC
      unit tests are based off of testing the effect of the data flow
      analysis (i.e. what statements are removed or moved, etc.). This creates
      weakness in the current unit testing regimem since we are not actually testing
      what effects various instructions have on the modeled pointer state.
      Additionally in order to analyze a bug in the optimizer, one would need to track
      by hand what the optimizer was actually doing either through use of DEBUG
      statements or through the usage of a debugger, both yielding large loses in
      developer productivity.
      
      This patch deals with these two issues by providing ARC annotation
      metadata that annotates instructions with the state changes that they cause in
      various pointers as well as provides metadata to annotate provenance sources.
      
      Specifically, we introduce the following metadata types:
      
      1. llvm.arc.annotation.bottomup.
      2. llvm.arc.annotation.topdown.
      3. llvm.arc.annotation.provenancesource.
      
      llvm.arc.annotation.{bottomup,topdown}: These annotations describes a state
      change in a pointer when we are visiting instructions bottomup/topdown
      respectively. The output format for both is the same:
      
        !1 = metadata !{metadata !"(test,%x)", metadata !"S_Release", metadata !"S_Use"}
      
      The first element is a string tuple with the following format:
      
        (function,variable name)
      
      The second two elements of the metadata show the previous state of the
      pointer (in this case S_Release) and the new state of the pointer (S_Use). We
      write the metadata in such a manner to ensure that it is easy for outside tools
      to parse. This is important since I am currently working on a tool for taking
      this information and pretty printing it besides the IR and that can be used for
      LIT style testing via the generation of an index.
      
      llvm.arc.annotation.provenancesource: This metadata is used to annotate
      instructions which act as provenance sources, i.e. ones that introduce a
      new (from the optimizer's perspective) non-argument pointer to track. This
      enables cross-referencing in between provenance sources and the state changes
      that occur to them.
      
      This is still a work in progress. Additionally I plan on committing
      later today additions to the annotations that annotate at the top/bottom
      of basic blocks the state of the various pointers being tracked.
      
      *NOTE* The metadata support is conditionally compiled into libObjCARCOpts only
      when we are producing a debug build of llvm/clang and even so are
      disabled by default. To enable the annotation metadata, pass in
      -enable-objc-arc-annotations to opt.
      
      llvm-svn: 177951
      81b1d437
    • Michael Gottesman's avatar
      Added documentation to LangRef for the intrinsic llvm.ptr.annotation.* which... · 88d1883d
      Michael Gottesman authored
      Added documentation to LangRef for the intrinsic llvm.ptr.annotation.* which for some reason was never written.
      
      llvm-svn: 177950
      88d1883d
    • Michael Liao's avatar
      Revise alignment checking/calculation on 256-bit unaligned memory access · 5fbcd817
      Michael Liao authored
      - It's still considered aligned when the specified alignment is larger
        than the natural alignment;
      - The new alignment for the high 128-bit vector should be min(16,
        alignment) as the pointer is advanced by 16, a power-of-2 offset.
      
      llvm-svn: 177947
      5fbcd817
    • Michael Liao's avatar
      Enhance folding of (extract_subvec (insert_subvec V1, V2, IIdx), EIdx) · bb05a1d7
      Michael Liao authored
      - Handle the case where the result of 'insert_subvect' is bitcasted
        before 'extract_subvec'. This removes the redundant insertf128/extractf128
        pair on unaligned 256-bit vector load/store on vectors of non 64-bit integer.
      
      llvm-svn: 177945
      bb05a1d7
    • Jakob Stoklund Olesen's avatar
      Add an -mcpu option to a test that is apparently scheduler-sensitive. · 52576719
      Jakob Stoklund Olesen authored
      This should fix the clang-atom-d2700-ubuntu-rel buildbot.
      
      llvm-svn: 177943
      52576719
    • Jakob Stoklund Olesen's avatar
      Add a scheduling model for Intel Sandy Bridge microarchitecture. · 8dfe9006
      Jakob Stoklund Olesen authored
      The model isn't hooked up by this patch because the instruction set
      isn't fully annotated yet.
      
      llvm-svn: 177942
      8dfe9006
    • Douglas Gregor's avatar
      Introduce a tiny CMake project to gather Subversion revision information and... · 96fa0fcf
      Douglas Gregor authored
      Introduce a tiny CMake project to gather Subversion revision information and place it into a header.
      
      llvm-svn: 177938
      96fa0fcf
    • Jakob Stoklund Olesen's avatar
      Remove IIC_DEFAULT from X86Schedule.td · 4d39e81f
      Jakob Stoklund Olesen authored
      All the instructions tagged with IIC_DEFAULT had nothing in common, and
      we already have a NoItineraries class to represent untagged
      instructions.
      
      llvm-svn: 177937
      4d39e81f
    • Jakob Stoklund Olesen's avatar
      Annotate X86InstrCompiler.td with SchedRW lists. · 5889ad6c
      Jakob Stoklund Olesen authored
      llvm-svn: 177936
      5889ad6c
    • Jakob Stoklund Olesen's avatar
      Annotate shifts and rotates with SchedRW lists. · 7fde8c4e
      Jakob Stoklund Olesen authored
      llvm-svn: 177935
      7fde8c4e
  2. Mar 25, 2013
Loading