llvm-6502/lib
Renato Golin 35b114fe18 Small refactor on VectorizerHint for deduplication
Previously, the hint mechanism relied on clean up passes to remove redundant
metadata, which still showed up if running opt at low levels of optimization.
That also has shown that multiple nodes of the same type, but with different
values could still coexist, even if temporary, and cause confusion if the
next pass got the wrong value.

This patch makes sure that, if metadata already exists in a loop, the hint
mechanism will never append a new node, but always replace the existing one.
It also enhances the algorithm to cope with more metadata types in the future
by just adding a new type, not a lot of code.

Re-applying again due to MSVC 2013 being minimum requirement, and this patch
having C++11 that MSVC 2012 didn't support.

Fixes PR20655.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216870 91177308-0d34-0410-b5e6-96231b3b80d8
2014-09-01 10:00:17 +00:00
..
Analysis Remove an errant outer loop that contains nothing but an inner loop over exactly the same elements. While no functionality is change intended (and hence there are no changes to tests), you don't want to skip this revision if bisecting for errors. 2014-09-01 05:17:15 +00:00
AsmParser
Bitcode
CodeGen [MachineSink] Use the real post dominator tree 2014-09-01 03:47:25 +00:00
DebugInfo
ExecutionEngine
IR Consider addrspaces in canLosslesslyBitCastTo() 2014-08-31 19:19:57 +00:00
IRReader
LineEditor
Linker
LTO
MC Fix some cases where StringRef was being passed by const reference. Remove const from some other StringRefs since its implicitly const already. 2014-08-30 16:48:02 +00:00
Object
Option
ProfileData
Support Fix some cases where StringRef was being passed by const reference. Remove const from some other StringRefs since its implicitly const already. 2014-08-30 16:48:02 +00:00
TableGen
Target [asan-assembly-instrumentation] Prologue and epilogue are moved out from InstrumentMemOperand(). 2014-09-01 09:56:45 +00:00
Transforms Small refactor on VectorizerHint for deduplication 2014-09-01 10:00:17 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile