llvm-6502/include/llvm/IR
Rafael Espindola 9718158222 Revert "Add r159136 back now that pr13124 has been fixed."
This reverts commit r189886.

I found a corner case where this optimization is not valid:

Say we have a "linkonce_odr unnamed_addr" in two translation units:
* In TU 1 this optimization kicks in and makes it hidden.
* In TU 2 it gets const merged with a constant that is *not* unnamed_addr,
  resulting in a non unnamed_addr constant with default visibility.
* The static linker rules for combining visibility them produce a hidden
  symbol, which is incorrect from the point of view of the non unnamed_addr
  constant.

The one place we can do this is when we know that the symbol is not used from
another TU in the same shared object, i.e., during LTO. I will move it there.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189954 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-04 16:09:01 +00:00
..
Argument.h
Attributes.h Add function attribute 'optnone'. 2013-08-23 11:53:55 +00:00
BasicBlock.h
CallingConv.h Remove the mblaze backend from llvm. 2013-07-25 18:55:05 +00:00
CMakeLists.txt
Constant.h
Constants.h
DataLayout.h Re-add DataLayout pointer size convenience functions. 2013-07-26 17:37:20 +00:00
DerivedTypes.h
Function.h Add a way to add a kind-value string pair to an attribute. 2013-07-25 18:34:24 +00:00
GlobalAlias.h Introduce non-const overloads for GlobalAlias::{get,resolve}AliasedGlobal. 2013-08-19 23:13:33 +00:00
GlobalValue.h Revert "Add r159136 back now that pr13124 has been fixed." 2013-09-04 16:09:01 +00:00
GlobalVariable.h
InlineAsm.h
InstrTypes.h Revert "Remove isCastable since nothing uses it now" 2013-07-30 22:02:14 +00:00
Instruction.def
Instruction.h
Instructions.h
IntrinsicInst.h
Intrinsics.h
Intrinsics.td Add a llvm.copysign intrinsic 2013-08-19 23:35:46 +00:00
IntrinsicsAArch64.td Inplement aarch64 neon instructions in AdvSIMD(shift). About 24 shift instructions: 2013-09-04 09:28:24 +00:00
IntrinsicsARM.td ARM: remove unused v(add|sub)hn and vqdml[as]l intrinsics. 2013-08-28 14:33:33 +00:00
IntrinsicsHexagon.td
IntrinsicsMips.td [mips][msa] Added IntrNoMem and removed Commutative from sub intrinsics. 2013-09-03 09:45:20 +00:00
IntrinsicsNVVM.td
IntrinsicsPowerPC.td
IntrinsicsR600.td
IntrinsicsX86.td AVX-512: compiler intrinsics 2013-08-19 06:55:01 +00:00
IntrinsicsXCore.td remove executable permission from IntrinsicsXCore.td 2013-08-01 17:17:59 +00:00
IRBuilder.h Fix missing const 2013-07-22 18:58:53 +00:00
LLVMContext.h
MDBuilder.h
Metadata.h Remove unneeded forward declarations. 2013-07-13 08:28:45 +00:00
Module.h Make these methods const correct. 2013-07-25 02:50:08 +00:00
OperandTraits.h
Operator.h
SymbolTableListTraits.h
Type.h
TypeBuilder.h
TypeFinder.h
Use.h
User.h
Value.h Add a new helper method to Value to strip in-bounds constant offsets of 2013-08-22 11:25:11 +00:00
ValueSymbolTable.h