Start using the recently added InstSimplify hook for shuffles in the respective InstCombine visitor.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Could you please add a testcase?
lib/Transforms/InstCombine/InstCombineVectorOps.cpp | ||
---|---|---|
1145–1147 | I'd move this above the MadeChange declaration. |
Comment Actions
InstCombine already has tests for the pattern removed:
Undefined shuffle mask -> undefined value
They continue to cover this patten.
I guess you can consider this patch as NFC-ish?
lib/Transforms/InstCombine/InstCombineVectorOps.cpp | ||
---|---|---|
1145–1147 | Sure |
I'd move this above the MadeChange declaration.