projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad294e5
)
[X86] Break if-else chain. NFCI.
author
Simon Pilgrim
<llvm-dev@redking.me.uk>
Fri, 5 Mar 2021 16:21:34 +0000
(16:21 +0000)
committer
Simon Pilgrim
<llvm-dev@redking.me.uk>
Mon, 8 Mar 2021 11:44:31 +0000
(11:44 +0000)
Both if blocks affect control flow - we don't need the else.
Fixes clang-tidy warning.
llvm/lib/Target/X86/X86ISelLowering.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/X86/X86ISelLowering.cpp
b/llvm/lib/Target/X86/X86ISelLowering.cpp
index
c24aa0f
..
d84b812
100644
(file)
--- a/
llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/
llvm/lib/Target/X86/X86ISelLowering.cpp
@@
-34452,7
+34452,8
@@
void X86TargetLowering::computeKnownBitsForTargetNode(const SDValue Op,
// of the shuffle result.
Known.resetAll();
break;
- } else if (M == SM_SentinelZero) {
+ }
+ if (M == SM_SentinelZero) {
Known.One.clearAllBits();
continue;
}