[PATCH] D45329: [InstCombine] [NFC] Add more tests for getting rid of select of bittest (D45108, PR36950 / PR17564)

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 5 14:24:29 PDT 2018


spatel added inline comments.


================
Comment at: test/Transforms/InstCombine/select-of-bittest.ll:292
+
+define i32 @f_var2(i32, i32) {
+; CHECK-LABEL: @f_var2(
----------------
lebedev.ri wrote:
> spatel wrote:
> > lebedev.ri wrote:
> > > spatel wrote:
> > > > It's better for readability to give the params and other values names. You can use 'opt -instnamer' to do that.
> > > Hmm, right. I shall use that for the future tests, thanks!
> > > But i guess i better keep this test as-is.
> > It's ok if you want to commit this as-is, but please do add the names and rebase D45108. No need to for pre-commit review for the test updating.
> Is there some way to run the pass and not loose all the comments in the test?
Hmm...I don't know. I had never noticed that before. Maybe it's easier to just add the param names and find/replace the others by hand? 

One thing you do have to be careful about - the CHECK generator script may have problems with values named '%tmp*' because as we can see it's using 'TMP*' for unnamed values.


Repository:
  rL LLVM

https://reviews.llvm.org/D45329





More information about the llvm-commits mailing list