Skip to content
  1. Jul 28, 2013
  2. Jul 27, 2013
  3. Jul 26, 2013
    • Bill Wendling's avatar
      Use a non-c'tor for converting a boolean into a StringRef. · 61b1a355
      Bill Wendling authored
      llvm-svn: 187250
      61b1a355
    • Owen Anderson's avatar
      When InstCombine tries to fold away (fsub x, (fneg y)) into (fadd x, y), it is · e37c2e4d
      Owen Anderson authored
      also worthwhile for it to look through FP extensions and truncations, whose
      application commutes with fneg.
      
      llvm-svn: 187249
      e37c2e4d
    • Bill Schmidt's avatar
      [PowerPC] Improve consistency in use of __ppc__, __powerpc__, etc. · 419f7c23
      Bill Schmidt authored
      Both GCC and LLVM will implicitly define __ppc__ and __powerpc__ for
      all PowerPC targets, whether 32- or 64-bit.  They will both implicitly
      define __ppc64__ and __powerpc64__ for 64-bit PowerPC targets, and not
      for 32-bit targets.  We cannot be sure that all other possible
      compilers used to compile Clang/LLVM define both __ppc__ and
      __powerpc__, for example, so it is best to check for both when relying
      on either inside the Clang/LLVM code base.
      
      This patch makes sure we always check for both variants.  In addition,
      it fixes one unnecessary check in lib/Target/PowerPC/PPCJITInfo.cpp.
      (At least one of __ppc__ and __powerpc__ should always be defined when
      compiling for a PowerPC target, no matter which compiler is used, so
      testing for them is unnecessary.)
      
      There are some places in the compiler that check for other variants,
      like __POWERPC__ and _POWER, and I have left those in place.  There is
      no need to add them elsewhere.  This seems to be in Apple-specific
      code, and I won't take a chance on breaking it.
      
      There is no intended change in behavior; thus, no test cases are
      added.
      
      llvm-svn: 187248
      419f7c23
    • Eric Christopher's avatar
      Use more parens to clarify assert. · 8c86ead1
      Eric Christopher authored
      llvm-svn: 187247
      8c86ead1
Loading