What exactly are the standard compile options that are implemented when using -std-compile-opts? The reason I'm asking is it seems that -std-compile-opts creates some CFG graphs that are invalid and should not be created and I am trying to figure out which stage is creating this issue? The input LLVM-ir is in test.ll. The version with no optimizations looks correct, but the one using -std-compile-opts produces a CFG with an infinite loop. Micah Villmow Systems Engineer Advanced Technology & Performance Advanced Micro Devices Inc. 4555 Great America Pkwy, Santa Clara, CA. 95054 P: 408-572-6219 F: 408-572-6596 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081016/814e3638/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: test.ll Type: application/octet-stream Size: 2044 bytes Desc: test.ll URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081016/814e3638/attachment.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: no_opt_test_fc_while_continue_or.dot Type: application/octet-stream Size: 941 bytes Desc: no_opt_test_fc_while_continue_or.dot URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081016/814e3638/attachment-0001.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: opt_test_fc_while_continue_or.dot Type: application/octet-stream Size: 1027 bytes Desc: opt_test_fc_while_continue_or.dot URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081016/814e3638/attachment-0002.obj>
On Oct 16, 2008, at 12:03 PM, Villmow, Micah wrote:> What exactly are the standard compile options that are implemented > when using -std-compile-opts?Do $ opt -debug-pass=Arguments -std-compile-opts to see a list of passes. - Devang -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081016/dabff9f1/attachment.html>
On Thu, Oct 16, 2008 at 12:03 PM, Villmow, Micah <Micah.Villmow at amd.com> wrote:> What exactly are the standard compile options that are implemented when > using -std-compile-opts? > > The reason I'm asking is it seems that -std-compile-opts creates some CFG > graphs that are invalid and should not be created and I am trying to figure > out which stage is creating this issue? > > The input LLVM-ir is in test.ll. > > The version with no optimizations looks correct, but the one using > -std-compile-opts produces a CFG with an infinite loop.You might want to try bugpoint; see http://llvm.org/docs/HowToSubmitABug.html and http://llvm.org/docs/Bugpoint.html for more info. For your specific case, you'll need to add a "main" of some sort, and pass something like -timeout 2 so that it doesn't take forever. That said, it's a lot more convenient than doing a manual binary search. -Eli
Ok, will do, I found the pass that was causing it, -loop-unswitch. I'll get a test case and a bug file. -----Original Message----- From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Eli Friedman Sent: Thursday, October 16, 2008 12:39 PM To: LLVM Developers Mailing List Subject: Re: [LLVMdev] opt options On Thu, Oct 16, 2008 at 12:03 PM, Villmow, Micah <Micah.Villmow at amd.com> wrote:> What exactly are the standard compile options that are implementedwhen> using -std-compile-opts? > > The reason I'm asking is it seems that -std-compile-opts creates someCFG> graphs that are invalid and should not be created and I am trying tofigure> out which stage is creating this issue? > > The input LLVM-ir is in test.ll. > > The version with no optimizations looks correct, but the one using > -std-compile-opts produces a CFG with an infinite loop.You might want to try bugpoint; see http://llvm.org/docs/HowToSubmitABug.html and http://llvm.org/docs/Bugpoint.html for more info. For your specific case, you'll need to add a "main" of some sort, and pass something like -timeout 2 so that it doesn't take forever. That said, it's a lot more convenient than doing a manual binary search. -Eli _______________________________________________ LLVM Developers mailing list LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev