[llvm] [llvm][CodeGen] Added a check in CodeGenPrepare::optimizeSwitchType (PR #83322)
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 29 13:23:42 PST 2024
================
@@ -194,25 +194,108 @@ return:
%retval = phi i32 [ -1, %sw.default ], [ 0, %sw.bb0 ], [ 1, %sw.bb1 ]
ret i32 %retval
}
+define i32 @sext_i32(i16 %a) {
----------------
preames wrote:
You should add test variants here with zeroext and signext on the arguments to make sure we test the interaction.
https://github.com/llvm/llvm-project/pull/83322
More information about the llvm-commits
mailing list