Add -O1/2/3 to bugpoint, so when you conclude opt -O2 reproduces an issue, you can...
authorEli Friedman <eli.friedman@gmail.com>
Mon, 6 Jun 2011 22:45:46 +0000 (22:45 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Mon, 6 Jun 2011 22:45:46 +0000 (22:45 +0000)
commitbe2d1239a40db5efd25e3f306ae15390d9db35c6
treef06581905277c1b6725258fe2021a585fd9c306f
parent42d41fda0873c27b81e18662f5746783a974301d
Add -O1/2/3 to bugpoint, so when you conclude opt -O2 reproduces an issue, you can just run bugpoint -O2. :)  My implementation isn't precisely equivalent to what opt does, but as far as I can tell, it's close enough.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132695 91177308-0d34-0410-b5e6-96231b3b80d8
tools/bugpoint/bugpoint.cpp