You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Repurpose replaceExtractElementTypeOfCallUsages to replace InsertValueInsts as well
- Renamed replaceExtractElementTypeOfCallUsages to replaceAggregateTypeOfCallUsages and made it replace uses of InsertValueInsts in addition to ExtractValueInst
- Added a test case to UAddc_errors.ll to ensure there are no other uses, and emit an error if so
- Added a test case to UAddc.ll to test the replacement of InsertValueInsts
- Removed the check on the number of indices, as this is error case is already handled. (It would be invalid LLVM IR.) This also makes the function more generally applicable in case another function would like to use it
0 commit comments