[llvm-reduce] Add reduction for aliases.
authorFlorian Hahn <flo@fhahn.com>
Wed, 28 Oct 2020 13:06:42 +0000 (13:06 +0000)
committerFlorian Hahn <flo@fhahn.com>
Wed, 28 Oct 2020 13:11:19 +0000 (13:11 +0000)
commit23c8da25ef79b31f8d014cb6135437e9061a4ce7
tree0203693be019a89d0ab87ab47de287ce5794a1fa
parent22a8f5a2c3c98432f28582ec72c7ea1fbe5ee1b2
[llvm-reduce] Add reduction for aliases.

This patch adds a new reduction pass that tries to remove aliases.
It runs early, as most of those likely can be removed up-front in
practice.

This substantially improves llvm-reduce for IR generated by the swift
compiler, which can generate a lot of aliases which lead to lots of
invalid reductions.

Reviewed By: lebedev.ri

Differential Revision: https://reviews.llvm.org/D90260
llvm/test/Reduce/remove-alias.ll
llvm/tools/llvm-reduce/CMakeLists.txt
llvm/tools/llvm-reduce/DeltaManager.h
llvm/tools/llvm-reduce/deltas/ReduceAliases.cpp [new file with mode: 0644]
llvm/tools/llvm-reduce/deltas/ReduceAliases.h [new file with mode: 0644]