I initially attempted to select the source modifier from xor of
a sign mask. This proved to be more difficult since
foldBinOpIntoSelect does not consider free fneg of integers
and undoes the combine.
Details
Details
- Reviewers
rampitec foad Pierre-vh sebastian-ne - Group Reviewers
Restricted Project
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Do we have/want something similar in GISel?
llvm/lib/Target/AMDGPU/SIISelLowering.cpp | ||
---|---|---|
9983 | Where is this function defined? In a parent diff? Also would the transform still be profitable if the SELECT has >1 user and won't be deleted after the combine runs? |
llvm/lib/Target/AMDGPU/SIISelLowering.cpp | ||
---|---|---|
9983 | Yes, I added it to the stack. The hasOneUse condition is covered under shouldFoldFNegIntoSrc, it's more complicated than normal because we can move modifiers up and down |
Where is this function defined? In a parent diff?
Also would the transform still be profitable if the SELECT has >1 user and won't be deleted after the combine runs?