Changes
Summary
- [X86] Pull out repeated Subtarget feature tests. NFCI. Avoids a scan-build "uninitialized value" warning in X86FastISel::X86SelectFPExtOrFPTrunc
- [TargetLowering] getValueType - use dyn_cast directly to find VectorType. NFCI. Matches what we do in other getValueType functions and fixes a null dereference warning in scan-build. Also cleans up the rest of the function - use auto and standardize the variable names.
Change Type | Path in Repository | Path in Workspace |
---|---|---|
![]() | /llvm/trunk/lib/Target/X86/X86FastISel.cpp | trunk/lib/Target/X86/X86FastISel.cpp |
Change Type | Path in Repository | Path in Workspace |
![]() | /llvm/trunk/include/llvm/CodeGen/TargetLowering.h | trunk/include/llvm/CodeGen/TargetLowering.h |