Andrew Trick
2013-Jan-21 22:59 UTC
[LLVMdev] [llvm-commits] [llvm] r172534 - /llvm/trunk/test/Transforms/LoopStrengthReduce/post-inc-icmpzero.ll
On Jan 21, 2013, at 12:37 PM, Chandler Carruth <chandlerc at google.com> wrote:> On Mon, Jan 21, 2013 at 11:49 AM, Andrew Trick <atrick at apple.com> wrote: > Moving to llvmdev... > > On Jan 21, 2013, at 11:37 AM, Nadav Rotem <nrotem at apple.com> wrote: > > > Hi Manish, > > > > Thank you for looking at this. Recently opt started using the "-mtriple" command line flag to initialize the TargetMachine for IR-level transformations that use it. Currently only the following passes are using this feature: LSR, LowerSwitch, BBVectorizer and LoopVectorizer. If you look at the tests in LoopVectorize you will see that the target-dependent tests are in target-dependent directories. > > The tests in the platform directories are fine. The question is what to do about all the tests in target-independent directories that have "target triple" in the bitcode. These tests don't use -mtriple. Instead, their behavior changes in subtle ways depending on which targets are built. It's certainly a confusing situation. > > My proposed resolution: > - If the tests are target independent, delete the triple. > - If they aren't, sink them to a target-specific subdirectory so they're skipped in the absence of the target being built.Filed llvm.org/pr15025.> - Make a triple an error if there is not support for that target.Filed llvm.org/pr15026. I assume opt should completely ignore target triple when -mtriple is provided, potentially bypassing the error. -Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130121/840d4c61/attachment.html>
Chandler Carruth
2013-Jan-21 23:12 UTC
[LLVMdev] [llvm-commits] [llvm] r172534 - /llvm/trunk/test/Transforms/LoopStrengthReduce/post-inc-icmpzero.ll
On Mon, Jan 21, 2013 at 2:59 PM, Andrew Trick <atrick at apple.com> wrote:> > On Jan 21, 2013, at 12:37 PM, Chandler Carruth <chandlerc at google.com> > wrote: > > On Mon, Jan 21, 2013 at 11:49 AM, Andrew Trick <atrick at apple.com> wrote: > >> Moving to llvmdev... >> >> On Jan 21, 2013, at 11:37 AM, Nadav Rotem <nrotem at apple.com> wrote: >> >> > Hi Manish, >> > >> > Thank you for looking at this. Recently opt started using the >> "-mtriple" command line flag to initialize the TargetMachine for IR-level >> transformations that use it. Currently only the following passes are using >> this feature: LSR, LowerSwitch, BBVectorizer and LoopVectorizer. If you >> look at the tests in LoopVectorize you will see that the target-dependent >> tests are in target-dependent directories. >> >> The tests in the platform directories are fine. The question is what to >> do about all the tests in target-independent directories that have "target >> triple" in the bitcode. These tests don't use -mtriple. Instead, their >> behavior changes in subtle ways depending on which targets are built. It's >> certainly a confusing situation. >> > > My proposed resolution: > - If the tests are target independent, delete the triple. > - If they aren't, sink them to a target-specific subdirectory so they're > skipped in the absence of the target being built. > > > Filed llvm.org/pr15025. > > - Make a triple an error if there is not support for that target. > > > Filed llvm.org/pr15026. > > > I assume opt should completely ignore target triple when -mtriple is > provided, >Yep.> potentially bypassing the error. >I would expect opt to error on an invalid '-mtriple' just as it would for an invalid triple in the IR.... -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130121/866b951d/attachment.html>
Manish Verma
2013-Jan-21 23:55 UTC
[LLVMdev] [llvm-commits] [llvm] r172534 - /llvm/trunk/test/Transforms/LoopStrengthReduce/post-inc-icmpzero.ll
Hi Andy, Thank you for creating the two PRs. My proposed resolution: - If the tests are target independent, delete the triple. - If they aren't, sink them to a target-specific subdirectory so they're skipped in the absence of the target being built. Filed llvm.org/pr15025. This would certainly require some effort as there are about a few hundred test-cases to validate for their target independence. Regards, Manish From: Andrew Trick [mailto:atrick at apple.com] Sent: 21 January 2013 23:00 To: Chandler Carruth Cc: Nadav Rotem; Manish Verma; Renato Golin; llvmdev at cs.uiuc.edu List Subject: Re: [LLVMdev] [llvm-commits] [llvm] r172534 - /llvm/trunk/test/Transforms/LoopStrengthReduce/post-inc-icmpzero.ll On Jan 21, 2013, at 12:37 PM, Chandler Carruth <chandlerc at google.com> wrote: On Mon, Jan 21, 2013 at 11:49 AM, Andrew Trick <atrick at apple.com> wrote: Moving to llvmdev... On Jan 21, 2013, at 11:37 AM, Nadav Rotem <nrotem at apple.com> wrote:> Hi Manish, > > Thank you for looking at this. Recently opt started using the "-mtriple"command line flag to initialize the TargetMachine for IR-level transformations that use it. Currently only the following passes are using this feature: LSR, LowerSwitch, BBVectorizer and LoopVectorizer. If you look at the tests in LoopVectorize you will see that the target-dependent tests are in target-dependent directories. The tests in the platform directories are fine. The question is what to do about all the tests in target-independent directories that have "target triple" in the bitcode. These tests don't use -mtriple. Instead, their behavior changes in subtle ways depending on which targets are built. It's certainly a confusing situation. My proposed resolution: - If the tests are target independent, delete the triple. - If they aren't, sink them to a target-specific subdirectory so they're skipped in the absence of the target being built. Filed llvm.org/pr15025. - Make a triple an error if there is not support for that target. Filed llvm.org/pr15026. I assume opt should completely ignore target triple when -mtriple is provided, potentially bypassing the error. -Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130121/40ff6701/attachment.html>
Maybe Matching Threads
- [LLVMdev] [llvm-commits] [llvm] r172534 - /llvm/trunk/test/Transforms/LoopStrengthReduce/post-inc-icmpzero.ll
- [LLVMdev] [llvm-commits] [llvm] r172534 - /llvm/trunk/test/Transforms/LoopStrengthReduce/post-inc-icmpzero.ll
- [LLVMdev] [llvm-commits] [llvm] r172534 - /llvm/trunk/test/Transforms/LoopStrengthReduce/post-inc-icmpzero.ll
- [LLVMdev] [llvm-commits] [llvm] r172534 - /llvm/trunk/test/Transforms/LoopStrengthReduce/post-inc-icmpzero.ll
- [LLVMdev] Patch for Transform/LoopStrengthReduction/post-inc-icmpzero.ll test-failure