[PATCH] D13532: [CGP] widen switch condition and case constants to target's register width
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 2 11:39:35 PST 2015
spatel updated this revision to Diff 38953.
spatel added a comment.
Patch updated:
1. Add check for a sign-extended function argument - in that case sext everything instead of zext.
2. Minimized tests - we don't need so many switch cases to show the differences in IR (the larger examples were better for visualizing the asm differences).
3. Added test case for #1.
http://reviews.llvm.org/D13532
Files:
lib/CodeGen/CodeGenPrepare.cpp
test/Transforms/CodeGenPrepare/widen_switch.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13532.38953.patch
Type: text/x-patch
Size: 6001 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151102/6a3ced93/attachment.bin>
More information about the llvm-commits
mailing list