[llc/opt] Add an option to run all passes twice

Description

[llc/opt] Add an option to run all passes twice

Summary: Lately, I have submitted a number of patches to fix bugs that
only occurred when using the same pass manager to compile multiple
modules (generally these bugs are failure to reset some persistent
state). Unfortunately I don't think there is currently a way to test
that from the command line. This adds a very simple flag to both llc
and opt, under which the tools will simply re-run their respective
pass pipelines using the same pass manager on (a clone of the same
module). Additionally, we verify that both outputs are bitwise the
same.

Reviewers: yaron.keren

Subscribers: loladiro, yaron.keren, kcc, llvm-commits

Differential Revision: http://reviews.llvm.org/D14965

Details

Committed
kfischerDec 4 2015, 1:56 PM
Differential Revision
D14965: [llc/opt] Add an option to run all passes twice
Parents
rL254773: [AArch64] Expand vector SDIVREM/UDIVREM operations.
Branches
Unknown
Tags
Unknown