llvm/lib
Sanjay Patel 553bcb5841 [TargetLowering] fix isConstTrueVal to account for build vector truncation
Build vectors have magical truncation powers, so we have things like this:

v4i1 = BUILD_VECTOR Constant:i32<1>, Constant:i32<1>, Constant:i32<1>, Constant:i32<1>
v4i16 = BUILD_VECTOR Constant:i32<1>, Constant:i32<1>, Constant:i32<1>, Constant:i32<1>

If we don't truncate the splat node returned by getConstantSplatNode(), then we won't find 
truth when ZeroOrNegativeOneBooleanContent is the rule.

Differential Revision: https://reviews.llvm.org/D32505


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301408 91177308-0d34-0410-b5e6-96231b3b80d8
2017-04-26 14:05:42 +00:00
..
Analysis InstructionSimplify: Use braced initializer list for SimplifyQuery creation 2017-04-26 04:10:02 +00:00
AsmParser Prefer addAttr(Attribute::AttrKind) over the AttributeList overload 2017-04-19 17:28:52 +00:00
Bitcode Make getSlotAttributes return an AttributeSet instead of a wrapper list 2017-04-24 22:25:02 +00:00
CodeGen [TargetLowering] fix isConstTrueVal to account for build vector truncation 2017-04-26 14:05:42 +00:00
DebugInfo [llvm-pdbdump] Allow sorting / filtering by immediate padding 2017-04-25 20:22:29 +00:00
Demangle
ExecutionEngine Revert "[APInt] Fix a few places that use APInt::getRawData to operate within the normal API." 2017-04-23 12:15:30 +00:00
Fuzzer Fixup for r301054: Use an explicit constructor. 2017-04-21 23:28:01 +00:00
IR [gcov] Sort file info before printing it 2017-04-26 00:16:10 +00:00
IRReader
LibDriver
LineEditor
Linker
LTO
MC PR31007 and PR27884 will be closed: a possibility to compile constants like 0bH is now supported in MS asm. 2017-04-26 09:56:59 +00:00
Object revert debugging 2017-04-26 00:02:39 +00:00
ObjectYAML [WebAssembly] Allow for signed relocation addends 2017-04-26 00:02:31 +00:00
Option
Passes Simplify the CFG after loop pass cleanup. 2017-04-26 12:02:41 +00:00
ProfileData [ProfileData] Unify getInstrProf*SectionName helpers 2017-04-15 00:09:57 +00:00
Support Revert "Refactor DynamicLibrary so searching for a symbol will have a defined order" 2017-04-24 20:16:01 +00:00
TableGen
Target [mips] Fix test mips64fpldst.ll with machine verifier enabled 2017-04-26 11:40:12 +00:00
Transforms Convert LoopRotation to use SimplifyQuery version of SimplifyInstruction. Add AssumptionCache, DominatorTree, TLI if available. 2017-04-26 13:52:18 +00:00
XRay
CMakeLists.txt
LLVMBuild.txt