diff options
author | Wang, Xin10 <xin10.wang@intel.com> | 2023-04-23 20:45:43 -0400 |
---|---|---|
committer | Wang, Xin10 <xin10.wang@intel.com> | 2023-04-23 20:46:34 -0400 |
commit | 76cc9492121a402f7099f3fec822ea7192d3074e (patch) | |
tree | 43a82ee44148259de9386be13225f021cdcc00fb /clang/lib/Frontend/CompilerInstance.cpp | |
parent | 8e58b79f67a9f921733b105a874c0d4f69dd50da (diff) | |
download | llvm-76cc9492121a402f7099f3fec822ea7192d3074e.zip llvm-76cc9492121a402f7099f3fec822ea7192d3074e.tar.gz llvm-76cc9492121a402f7099f3fec822ea7192d3074e.tar.bz2 |
Clean come dead code
These codes deleted are dead code, we never go into it.
1. In AggressiveAntiDepBreaker.cpp, have assert AntiDepReg != 0.
2. IfConversion.cpp, Kind can only be one unique value, so isFalse && isRev
can never be true.
3. DAGCombiner.cpp, at line 3675, we have considered the condition like
```
// fold (sub x, c) -> (add x, -c)
if (N1C) {
return DAG.getNode(ISD::ADD, DL, VT, N0,
DAG.getConstant(-N1C->getAPIntValue(), DL, VT));
}
```
4. ScheduleDAGSDNodes.cpp, we have Latency > 1 at line 663
5. MasmParser.cpp, code exists in a switch-case block which decided by
the value FirstTokenKind, at line 1621, FirstTokenKind could only be
one of AsmToken::Dollar, AsmToken::At and AsmToken::Identifier.
Reviewed By: skan
Differential Revision: https://reviews.llvm.org/D148610
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
0 files changed, 0 insertions, 0 deletions