Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] Adding legal integer sizes to TargetData"
2009 Feb 02
0
[LLVMdev] Adding legal integer sizes to TargetData
On Feb 1, 2009, at 11:06 PMPST, Chris Lattner wrote:
> Now that 2.5 is about to branch, I'd like to bring up one of Scott's
> favorite topics: certain optimizers widen or narrow arithmetic,
> without regard for whether the type is legal for the target. In his
> specific case, instcombine is turning an i32 multiply into an i64
> multiply in order to eliminate a cast. This
2009 Feb 02
2
[LLVMdev] Adding legal integer sizes to TargetData
On Feb 2, 2009, at 1:26 PM, Dale Johannesen wrote:
>
> On Feb 1, 2009, at 11:06 PMPST, Chris Lattner wrote:
>
>> Now that 2.5 is about to branch, I'd like to bring up one of Scott's
>> favorite topics: certain optimizers widen or narrow arithmetic,
>> without regard for whether the type is legal for the target. In his
>> specific case, instcombine is
2009 Feb 02
0
[LLVMdev] Adding legal integer sizes to TargetData
On Feb 2, 2009, at 1:29 PMPST, Chris Lattner wrote:
>
> On Feb 2, 2009, at 1:26 PM, Dale Johannesen wrote:
>
>>
>> On Feb 1, 2009, at 11:06 PMPST, Chris Lattner wrote:
>>
>>> Now that 2.5 is about to branch, I'd like to bring up one of Scott's
>>> favorite topics: certain optimizers widen or narrow arithmetic,
>>> without regard for
2009 Feb 02
2
[LLVMdev] Adding legal integer sizes to TargetData
Now that 2.5 is about to branch, I'd like to bring up one of Scott's
favorite topics: certain optimizers widen or narrow arithmetic,
without regard for whether the type is legal for the target. In his
specific case, instcombine is turning an i32 multiply into an i64
multiply in order to eliminate a cast. This does simplify/reduce the
number of IR operations, but an i64 multiply
2009 Jan 20
3
[LLVMdev] Shouldn't DAGCombine insert legal nodes?
I just ran across something interesting: DAGCombine inserts a 64-bit
constant as the result of converting a (bitconvert (fabs val)) to a
(and (bitconvert val), i64const).
The problem: i64 constants have to be legalized for the CellSPU
platform. DAGCombine is doing the right thing but it's not doing the
right thing for CellSPU and it's damed difficult to work around this
2009 Jan 20
0
[LLVMdev] Shouldn't DAGCombine insert legal nodes?
On Mon, Jan 19, 2009 at 6:36 PM, Scott Michel <scottm at aero.org> wrote:
> I just ran across something interesting: DAGCombine inserts a 64-bit
> constant as the result of converting a (bitconvert (fabs val)) to a
> (and (bitconvert val), i64const).
>
> The problem: i64 constants have to be legalized for the CellSPU
> platform. DAGCombine is doing the right thing but
2009 Jan 20
0
[LLVMdev] Shouldn't DAGCombine insert legal nodes?
Evan:
And after legalize too. DAGCombine gets run after legalization. :-)
-scooter
On Jan 19, 2009, at 10:52 PM, Evan Cheng wrote:
> Right. DAGCombine will insert *illegal* nodes before legalize.
>
> Evan
>
> On Jan 19, 2009, at 8:17 PM, Eli Friedman wrote:
>
>> On Mon, Jan 19, 2009 at 6:36 PM, Scott Michel <scottm at aero.org>
>> wrote:
>>> I
2009 Jan 20
5
[LLVMdev] Shouldn't DAGCombine insert legal nodes?
Right. DAGCombine will insert *illegal* nodes before legalize.
Evan
On Jan 19, 2009, at 8:17 PM, Eli Friedman wrote:
> On Mon, Jan 19, 2009 at 6:36 PM, Scott Michel <scottm at aero.org> wrote:
>> I just ran across something interesting: DAGCombine inserts a 64-bit
>> constant as the result of converting a (bitconvert (fabs val)) to a
>> (and (bitconvert val),
2010 Dec 01
2
[LLVMdev] fixed point types
On Tue, Nov 30, 2010 at 05:48, Jonas Paulsson <jnspaulsson at hotmail.com> wrote:
>
> May I ask then, what could one expect from various optimizations when using
> intrinsics to support the fixed point type? LTO, Value optimizations, mem ??
>
Can you not just lower your fixed-point operations to widen, perform
normal integer operation, shift and truncate? With LLVM's
2010 Dec 01
0
[LLVMdev] fixed point types
On Wed, Dec 1, 2010 at 8:11 AM, me22 <me22.ca at gmail.com> wrote:
> On Tue, Nov 30, 2010 at 05:48, Jonas Paulsson <jnspaulsson at hotmail.com> wrote:
>> May I ask then, what could one expect from various optimizations when using
>> intrinsics to support the fixed point type? LTO, Value optimizations, mem ??
>>
>
> Can you not just lower your fixed-point
2009 Jan 20
0
[LLVMdev] Shouldn't DAGCombine insert legal nodes?
Eli:
Legal constants would be all well and good for most platforms. I
don't think that CellSPU is alone in its support for i64 constants
(in fact, the comment in DAGCombine says that the 64-bit constant is
inserted to "avoid a constant pool spill").
In many respects, DAGCombine and operation Legalize are co-routines,
not separate passes.
-scooter
On Jan 20, 2009, at 1:23
2009 May 03
1
[LLVMdev] L1, L2 Cache line sizes in TargetData?
Hello,
Is there any way for a pass to determine the L1 or L2 cacheline size
of the target before the IR is lowered to machine instructions?
Thanks,
--
Nick Johnson
2018 Feb 28
0
How to handle UMULO?
I think your users will be very upset if you don't set the boolean return
value correctly :-)
Whatever work it takes to determine the correct value for it, if the user
code doesn't need/use that value then the dead code will be eliminated
later. But if they need that return flag then they will want it to be
correct!
You may need to use a multiply instruction that returns a
2018 Feb 28
1
How to handle UMULO?
If your target has a cheap count-leading-zeros instruction, you'd be able to determine whether an unsigned multiply will overflow or not, in most cases, without doing the long version of the multiplication. This is because an N-bit number times an M-bit number will produce a result that is either N+M bits wide or N+M-1 bits wide. If an N+M bit result will fit in your result type, you are
2013 Aug 13
1
[LLVMdev] vector type legalization
Hi Nadav, I believe the implementation to keep on widening the vector to
the next power of two must be in TargetLowering.h because that is where we
decide whether to Widen the vector or not, and the size to which we widen
it. In this case, we stop at 4xi8 and do not check if it is legal or not.
But the comment says ‘try to widen vector elements until a legal type is
found’.
Also, there is a
2013 Aug 13
0
[LLVMdev] vector type legalization
On Aug 13, 2013, at 9:09 AM, Sriram Murali <sriram87 at gmail.com> wrote:
> Hi Nadav, I believe the implementation to keep on widening the vector to the next power of two must be in TargetLowering.h because that is where we decide whether to Widen the vector or not, and the size to which we widen it.
The decision on which legalization kind to do is implemented in TargetLowering.h. The
2009 Jan 26
2
[LLVMdev] DAGCombiner rant
Yes, it was I who put that rant in the commit log and it's justified. Worse,
it's unreasonable to actually go through all of DAGCombiner's code and check
to see if certain kinds of constants, e.g., i64, are legal during a
particular phase of DAGCombiner. DAGCombiner does good work and the backends
are supposed to be good citizens. CellSPU is certainly trying to be a good
citizen, no
2009 Jan 28
0
[LLVMdev] DAGCombiner rant
Hi Scott,
I'm not clear on what you're saying here; some of your
points below seem to be contradictory. The advice to
use target-independent nodes when feasible seems
sound to me, so I wrote up a comment about it in
SelectionDAGNodes.h. If you can formulate your
thoughts in the form of specific documentation changes,
that would be helpful.
In theory, DAGCombiner is supposed to check if
2013 Aug 12
0
[LLVMdev] vector type legalization
This is a bug in the implementation of WidenVecRes_Binary. On line 1546 it assumes that “Widen” is the last phase of type-legalization and we check if the result is a legal type. But actually we want to continue and promote the elements of the vector. In other cases we may want to widen (to the next power of two) and later split in half because the vector is too big.
On Aug 12, 2013, at 10:46
2007 Dec 15
1
[LLVMdev] strict aliasing in SPU land
/Volumes/mrs5/net/llvm/llvm/llvm/lib/Target/CellSPU/
SPUISelDAGToDAG.cpp: In function
'bool<unnamed>::isFPS16Immediate(llvm::ConstantFPSDNode*, short int&)':
/Volumes/mrs5/net/llvm/llvm/llvm/lib/Target/CellSPU/
SPUISelDAGToDAG.cpp:141: warning: dereferencing type-punned pointer
will break strict-aliasing rules
In file included from