[llvm] r226671 - Fixed a bug with how we determine bitset indices.

Hal Finkel hfinkel at anl.gov
Wed Jan 21 11:33:21 PST 2015


----- Original Message -----
> From: "George Burgess IV" <george.burgess.iv at gmail.com>
> To: "Hal J. Finkel" <hfinkel at anl.gov>
> Cc: llvm-commits at cs.uiuc.edu
> Sent: Wednesday, January 21, 2015 11:36:18 AM
> Subject: Re: [llvm] r226671 - Fixed a bug with how we determine bitset indices.
> 
> Diff containing only the test case is attached — I’ll start including
> test cases for changes like this in the future. :)

Thanks!

> 
> Is the crash-the-compiler style of test (given the circumstances)
> acceptable, or do you think it would be best to verify the
> compiler’s output as well?

Verifying the output is preferred, so long as the output is expected to be stable relative to what is being checked. It is not required, however. In this case, checking the output seems straightforward, so you might as well do it. Regardless, LGTM.

 -Hal

> 
> George
> 
> 
> 
> 
> > On Jan 21, 2015, at 11:42 AM, Hal Finkel <hfinkel at anl.gov> wrote:
> > 
> > Do you have a test case?
> > 
> > -Hal
> > 
> > ----- Original Message -----
> >> From: "George Burgess IV" <george.burgess.iv at gmail.com>
> >> To: llvm-commits at cs.uiuc.edu
> >> Sent: Wednesday, January 21, 2015 10:37:21 AM
> >> Subject: [llvm] r226671 - Fixed a bug with how we determine bitset
> >> indices.
> >> 
> >> Author: gbiv
> >> Date: Wed Jan 21 10:37:21 2015
> >> New Revision: 226671
> >> 
> >> URL: http://llvm.org/viewvc/llvm-project?rev=226671&view=rev
> >> Log:
> >> Fixed a bug with how we determine bitset indices.
> >> 
> >> 
> >> Modified:
> >> llvm/trunk/lib/Analysis/CFLAliasAnalysis.cpp
> >> 
> >> Modified: llvm/trunk/lib/Analysis/CFLAliasAnalysis.cpp
> >> URL:
> >> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/CFLAliasAnalysis.cpp?rev=226671&r1=226670&r2=226671&view=diff
> >> ==============================================================================
> >> --- llvm/trunk/lib/Analysis/CFLAliasAnalysis.cpp (original)
> >> +++ llvm/trunk/lib/Analysis/CFLAliasAnalysis.cpp Wed Jan 21
> >> 10:37:21
> >> 2015
> >> @@ -774,7 +774,7 @@ static Optional<StratifiedAttr> valueToA
> >> }
> >> 
> >> static StratifiedAttr argNumberToAttrIndex(unsigned ArgNum) {
> >> - if (ArgNum > AttrMaxNumArgs)
> >> + if (ArgNum >= AttrMaxNumArgs)
> >> return AttrAllIndex;
> >> return ArgNum + AttrFirstArgIndex;
> >> }
> >> 
> >> 
> >> _______________________________________________
> >> llvm-commits mailing list
> >> llvm-commits at cs.uiuc.edu
> >> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
> >> 
> > 
> > --
> > Hal Finkel
> > Assistant Computational Scientist
> > Leadership Computing Facility
> > Argonne National Laboratory
> 
> 

-- 
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory


More information about the llvm-commits mailing list