When Src and Dst used in buildAnyExtOrTrunc or buildSExtOrTrunc
have the same type (creates COPY) use Src register directly or
use replaceRegOrBuildCopy instead.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h | ||
|---|---|---|
| 135 | should this be else if? | |
Comment Actions
LGTM!
| llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h | ||
|---|---|---|
| 135 | I don't think it needs to be since SextSrc and TruncSrc are mutually exclusive. | |
should this be else if?