Added .legalIfNoopAddrSpaceCast predicate to handle the common case of a no-op addrspacecast in most targets.
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
This seems like something that most targets would want done by default. I wonder if we should have a standard set of legalizer actions that targets can use. LGTM anyway.
lib/CodeGen/GlobalISel/LegalityPredicates.cpp | ||
---|---|---|
104 | This should assert already in getAddressSpace(). |
This should assert already in getAddressSpace().