In type legalizing on PowerPC platform, when we are going to truncate normal vectors into vectors with elements whose size is not power of 2, the compiler will hit an assert complaining size-mismatch. Since such situation is rare, I add a check to prevent the trunc being optimized if the size of element is not power of 2.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
llvm/test/CodeGen/PowerPC/pr25080.ll | ||
---|---|---|
1 | Is update_llc_test_checks too much for an assertion fix? |
llvm/test/CodeGen/PowerPC/pr25080.ll | ||
---|---|---|
1 | Checking if it exits successfully with no diagnostics is enough for an assertion fix. Here I just disabled doing the optimization since the occasion is rare. In case someone would like to do it for such odd vectors in the future, I recommend to keep it as-is. After that, this case can notify and be changed. |
Is update_llc_test_checks too much for an assertion fix?