In patch https://reviews.llvm.org/D72396, it doesn't check DoTransform before transforming the code, and generates wrong result for the attached test case.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LG
I think that function is misdesigned, but i can't suggest an easy good alternative.
llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp | ||
---|---|---|
959 | Please add a comment to the function explaining this weird DoTransform behaviour. |
Please add a comment to the function explaining this weird DoTransform behaviour.