fix some typo in LICM.cpp
Details
Diff Detail
Event Timeline
llvm/lib/Transforms/Scalar/LICM.cpp | ||
---|---|---|
561 | I'm not sure if this is right, but I think it should be closer to what the author wants to express. |
Thank you for the typo fixes.
llvm/lib/Transforms/Scalar/LICM.cpp | ||
---|---|---|
1352 | Why is this removed? |
llvm/lib/Transforms/Scalar/LICM.cpp | ||
---|---|---|
561 | I don't think the new wording is right: What this is saying is that without this check, the instruction would be sunk, which is legal but pointless. Instead it is completely removed here. |
llvm/lib/Transforms/Scalar/LICM.cpp | ||
---|---|---|
561 | Oh sorry, I read it again and think you are right. Since I’m not a native English speaker, I have some misunderstandings about the comments. Sorry again. | |
1352 | I think that the variable LI is used in the following assertion so there won't be an unused-variable warning. |
Update comments on line 561.
I think describe it in this way is easier to understand.
llvm/lib/Transforms/Scalar/LICM.cpp | ||
---|---|---|
1352 | asserts are not present in NDEBUG builds, which is why this void cast exists. |
llvm/lib/Transforms/Scalar/LICM.cpp | ||
---|---|---|
1352 | sorry I'm not aware of this, and it's fixed now. |
I'm not sure if this is right, but I think it should be closer to what the author wants to express.