Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I'm surprised how we've never hit this until now. Mostly looks good to me, just a few nits.
llvm/include/llvm/IR/PatternMatch.h | ||
---|---|---|
2435 | nit: can you make this: GEP->getNumIndices() == 1? | |
2438 | nit: please move this condition earlier, so that a simple condition that's likely to evaluate to false, is evaluated first. | |
llvm/unittests/IR/PatternMatch.cpp | ||
1640 | nit: unnecessary newline | |
1645 | You can write VecTy->getPointerTo() and remove VecPtrTy. | |
1651 | Same comment as above, you can write VecTy2->getPointerTo() |
Restructured if statment
Cleaned up code:
Removed unneeded newline
Changed PointerType::get() to ->getPointerType()
llvm/unittests/IR/PatternMatch.cpp | ||
---|---|---|
1649 | nit: Can you add a comment saying that this used to cause an assertion-failure before this patch? |
nit: can you make this: GEP->getNumIndices() == 1?