This repository was archived by the owner on Apr 23, 2020. It is now read-only.
Commit 1886c8e
committed
[CodeGen] When promoting CTTZ operations to larger type, don't insert a select to detect if the input is zero to return the original size instead of the extended size. Instead just set the first bit in the zero extended part.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267280 91177308-0d34-0410-b5e6-96231b3b80d81 parent a51154f commit 1886c8e
File tree
2 files changed
+14
-67
lines changed- lib/CodeGen/SelectionDAG
- test/CodeGen/X86
2 files changed
+14
-67
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4010 | 4010 | | |
4011 | 4011 | | |
4012 | 4012 | | |
| 4013 | + | |
| 4014 | + | |
| 4015 | + | |
| 4016 | + | |
| 4017 | + | |
| 4018 | + | |
| 4019 | + | |
| 4020 | + | |
| 4021 | + | |
4013 | 4022 | | |
4014 | 4023 | | |
4015 | 4024 | | |
4016 | | - | |
4017 | | - | |
4018 | | - | |
4019 | | - | |
4020 | | - | |
4021 | | - | |
4022 | | - | |
4023 | | - | |
4024 | | - | |
| 4025 | + | |
| 4026 | + | |
4025 | 4027 | | |
4026 | 4028 | | |
4027 | 4029 | | |
| |||
0 commit comments