| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
| |
llvm-svn: 147553
|
| |
|
|
|
|
|
|
|
|
| |
Get back getHostTriple.
For JIT compilation, use the host triple instead of the default
target: this fixes some JIT testcases that used to fail when the
compiler has been configured as a cross compiler.
llvm-svn: 147542
|
| |
|
|
| |
llvm-svn: 147541
|
| |
|
|
| |
llvm-svn: 147529
|
| |
|
|
|
|
| |
nsw bits on them.
llvm-svn: 147528
|
| |
|
|
|
|
| |
are commuted in the shuffle mask.
llvm-svn: 147527
|
| |
|
|
| |
llvm-svn: 147525
|
| |
|
|
| |
llvm-svn: 147519
|
| |
|
|
|
|
|
|
|
| |
versions derive from them.
- JALR64 is not needed since N64 does not emit jal.
- Add template parameter to BranchLink that sets the rt field.
- Fix the set of temporary registers for O32 and N64.
llvm-svn: 147518
|
| |
|
|
|
|
| |
is Mips64.
llvm-svn: 147516
|
| |
|
|
| |
llvm-svn: 147513
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(x > y) ? x : y
=>
(x >= y) ? x : y
So for something like
(x - y) > 0 : (x - y) ? 0
It will be
(x - y) >= 0 : (x - y) ? 0
This makes is possible to test sign-bit and eliminate a comparison against
zero. e.g.
subl %esi, %edi
testl %edi, %edi
movl $0, %eax
cmovgl %edi, %eax
=>
xorl %eax, %eax
subl %esi, $edi
cmovsl %eax, %edi
rdar://10633221
llvm-svn: 147512
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before we'd get:
$ clang t.c
fatal error: error in backend: Invalid operand for inline asm constraint 'i'!
Now we get:
$ clang t.c
t.c:16:5: error: invalid operand for inline asm constraint 'i'!
"movq (%4), %%mm0\n"
^
Which at least gets us the inline asm that is the problem.
llvm-svn: 147502
|
| |
|
|
| |
llvm-svn: 147501
|
| |
|
|
| |
llvm-svn: 147495
|
| |
|
|
|
|
|
|
|
| |
This patch caused a miscompilation of oggenc because a frame pointer was
suddenly needed halfway through register allocation.
<rdar://problem/10625436>
llvm-svn: 147487
|
| |
|
|
|
|
|
|
|
| |
This can only happen if the set of reserved registers changes during
register allocation.
<rdar://problem/10625436>
llvm-svn: 147486
|
| |
|
|
| |
llvm-svn: 147485
|
| |
|
|
|
|
| |
integer-promoted.
llvm-svn: 147484
|
| |
|
|
|
|
|
| |
then a vxorps + vinsertf128 pair if the original vector came from a load.
rdar://10594409
llvm-svn: 147481
|
| |
|
|
|
|
| |
if-statement by turning it into an assert. No functionality change.
llvm-svn: 147474
|
| |
|
|
|
|
| |
Targets can perfects well support intrinsics on illegal types, as long as they are prepared to perform custom expansion during type legalization. For example, a target where i64 is illegal might still support the i64 intrinsic operation using pairs of i32's. ARM already does some expansions like this for non-intrinsic operations.
llvm-svn: 147472
|
| |
|
|
| |
llvm-svn: 147471
|
| |
|
|
|
|
|
|
| |
If anybody has strong feelings about 'default: assert(0 && "blah")' vs
'default: llvm_unreachable("blah")', feel free to regularize the instances of
each in this file.
llvm-svn: 147459
|
| |
|
|
| |
llvm-svn: 147454
|
| |
|
|
| |
llvm-svn: 147453
|
| |
|
|
| |
llvm-svn: 147446
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The failure seen on win32, when i64 type is illegal.
It happens on stage of conversion VECTOR_SHUFFLE to BUILD_VECTOR.
The failure message is:
llc: SelectionDAG.cpp:784: void VerifyNodeCommon(llvm::SDNode*): Assertion `(I->getValueType() == EltVT || (EltVT.isInteger() && I->getValueType().isInteger() && EltVT.bitsLE(I->getValueType()))) && "Wrong operand type!"' failed.
I added a special test that checks vector shuffle on win32.
llvm-svn: 147445
|
| |
|
|
|
|
|
|
| |
"phony" insertion point.
Fixes rdar://10619599: "SelectionDAGBuilder shouldn't visit PHI nodes!" assert
llvm-svn: 147439
|
| |
|
|
|
|
| |
converting the indexing loops to unsigned to be consistent across functions.
llvm-svn: 147430
|
| |
|
|
|
|
| |
Also make it return false if there's not even a load at all. This makes the code better match the code in DAGCombiner that it tries to match. These two changes prevent some cases where vector_shuffles were making it to instruction selection and causing the older shuffle selection code to be triggered. Also needed to fix a bad pattern that this change exposed. This is the first step towards getting rid of the old shuffle selection support. No test cases yet because there's no way to tell whether a shuffle was handled in the legalize stage or at instruction selection.
llvm-svn: 147428
|
| |
|
|
|
|
| |
instructions only look at the highest bit.
llvm-svn: 147426
|
| |
|
|
|
|
| |
PR11677.
llvm-svn: 147425
|
| |
|
|
| |
llvm-svn: 147411
|
| |
|
|
|
|
| |
is enabled. Fix monitor and mwait to require SSE3 or AVX, previously they worked even if SSE3 was disabled. Make prefetch instructions not set the execution domain since they don't use XMM registers.
llvm-svn: 147409
|
| |
|
|
| |
llvm-svn: 147404
|
| |
|
|
|
|
| |
it to simplify a few matchers.
llvm-svn: 147403
|
| |
|
|
| |
llvm-svn: 147400
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The failure seen on win32, when i64 type is illegal.
It happens on stage of conversion VECTOR_SHUFFLE to BUILD_VECTOR.
The failure message is:
llc: SelectionDAG.cpp:784: void VerifyNodeCommon(llvm::SDNode*): Assertion `(I->getValueType() == EltVT || (EltVT.isInteger() && I->getValueType().isInteger() && EltVT.bitsLE(I->getValueType()))) && "Wrong operand type!"' failed.
I added a special test that checks vector shuffle on win32.
llvm-svn: 147399
|
| |
|
|
| |
llvm-svn: 147394
|
| |
|
|
| |
llvm-svn: 147393
|
| |
|
|
|
|
| |
a load from being selected.
llvm-svn: 147392
|
| |
|
|
|
|
|
| |
'and' that would zero out the trailing bits, and to produce an exact shift
ourselves.
llvm-svn: 147391
|
| |
|
|
|
|
|
|
|
|
|
| |
See PR11652. Trying to add this assert to
setSubclassData() itself actually prevented
the miscompile entirely, so it has to be here.
This makes the source of the bug more obvious
than the other asserts triggering later on did.
llvm-svn: 147390
|
| |
|
|
| |
llvm-svn: 147383
|
| |
|
|
|
|
|
|
|
|
|
| |
Implement encoder methods getJumpTargetOpValue and getBranchTargetOpValue
for jmptarget and brtarget Mips tablegen operand types in the code emitter
for old-style JIT. Rename the pc relative relocation for branches - new
name is Mips::reloc_mips_pc16.
Patch by Sasa Stankovic
llvm-svn: 147382
|
| |
|
|
|
|
| |
removing from Bulldozer CPU types since it would enable AVX code generation implicitly. Also make SSE4A imply SSE3. Without some level of SSE implied, XMM registers wouldn't be legal.
llvm-svn: 147369
|
| |
|
|
| |
llvm-svn: 147368
|
| |
|
|
| |
llvm-svn: 147367
|
| |
|
|
|
|
| |
of having the W bit set for XOP instructons. Removes ORing W-bits in the encoder and will similarly simplify the disassembler implementation.
llvm-svn: 147366
|