[bugpoint] Add support for -Oz and properly enable -Os.
authorFlorian Hahn <flo@fhahn.com>
Tue, 17 Sep 2019 08:14:09 +0000 (08:14 +0000)
committerFlorian Hahn <flo@fhahn.com>
Tue, 17 Sep 2019 08:14:09 +0000 (08:14 +0000)
commit5c17323dd8eeeb0d2d9c17c4ad0200c8a4e4ded7
tree08d741a27c4fad8ebabedb6c9b91b58ca4f8911d
parent645593844164187a2de37b40e62cd790cfb48a03
[bugpoint] Add support for -Oz and properly enable -Os.

This patch adds -Oz as option and also properly enables support for -Os.
Currently, the existing check for -Os is dead, because the enclosing if
only checks of O1, O2 and O3.

There is still a difference between the -Oz pipeline compared to opt,
but I have not been able to track that down yet.

Reviewers: bogner, sebpop, efriedma

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D67593

llvm-svn: 372079
llvm/tools/bugpoint/bugpoint.cpp