llvm/lib
Craig Topper c7e3512b43 [InstCombine] Remove the zextOrTrunc from ShrinkDemandedConstant.
The demanded mask and the constant should always be the same width for all callers today.

Also stop copying the demanded mask as its passed in. We should avoid allocating memory unless we are going to do something. The final AND to create the new constant will take care of it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300927 91177308-0d34-0410-b5e6-96231b3b80d8
2017-04-20 23:58:27 +00:00
..
Analysis [APInt] Rename getSignBit to getSignMask 2017-04-20 16:56:25 +00:00
AsmParser Prefer addAttr(Attribute::AttrKind) over the AttributeList overload 2017-04-19 17:28:52 +00:00
Bitcode PR32382: Fix emitting complex DWARF expressions. 2017-04-18 01:21:53 +00:00
CodeGen Revert "[AArch64] Improve code generation for logical instructions taking" 2017-04-20 23:03:30 +00:00
DebugInfo Code style change as suggested in https://reviews.llvm.org/D32177 (NFC) 2017-04-19 20:52:21 +00:00
Demangle Add support for demangling C++11 thread_local variables. 2017-01-31 15:56:36 +00:00
ExecutionEngine [APInt] Use lshrInPlace to replace lshr where possible 2017-04-18 17:14:21 +00:00
Fuzzer Revert "[libFuzzer] XFAIL fuzzer-oom.test on Darwin." 2017-04-20 00:16:13 +00:00
IR Remove duplicate AttributeList::removeAttributes implementation 2017-04-20 18:08:36 +00:00
IRReader
LibDriver Fix some ArgList uses after API change in r300135. 2017-04-12 23:43:58 +00:00
LineEditor
Linker [Linker] Provide callback for internalization 2017-03-13 18:08:11 +00:00
LTO Object, LTO: Add target triple to irsymtab and LTO API. 2017-04-14 02:55:06 +00:00
MC Distinguish between code pointer size and DataLayout::getPointerSize() in DWARF info generation 2017-04-17 17:41:25 +00:00
Object [Object] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-04-19 23:02:10 +00:00
ObjectYAML Add virtual destructor to WasmYAML::Section or avoid memory leak 2017-03-31 22:14:14 +00:00
Option ArgList: cache index ranges containing arguments with each ID 2017-04-12 23:19:51 +00:00
Passes MemorySSA: Move to Analysis, from Transforms/Utils. It's used as 2017-04-11 20:06:36 +00:00
ProfileData [ProfileData] Unify getInstrProf*SectionName helpers 2017-04-15 00:09:57 +00:00
Support [DWARF] Versioning for DWARF constants; verify FORMs 2017-04-20 19:16:51 +00:00
TableGen Use print() instead of dump() in code 2017-01-28 02:47:46 +00:00
Target X86RegisterInfo: eliminateFrameIndex: Avoid code duplication; NFC 2017-04-20 23:34:50 +00:00
Transforms [InstCombine] Remove the zextOrTrunc from ShrinkDemandedConstant. 2017-04-20 23:58:27 +00:00
XRay [XRay] - Fix spelling error to test commit access. 2017-04-06 03:32:01 +00:00
CMakeLists.txt
LLVMBuild.txt