Src1 for mbcnt can be a non-zero literal or register. Take this into account
when calculating known bits.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp | ||
---|---|---|
4606 | Comment seems misleading since this can give useful results even when src1 is not an immediate. Also you could make this slightly simpler and more accurate by constructing a KnownBits for 0..(wavefront size - 1) (i.e. the high 26 or 27 bits are known zero) and then calling computeForAddSub to combine it with the known bits of src1. |
Comment seems misleading since this can give useful results even when src1 is not an immediate.
Also you could make this slightly simpler and more accurate by constructing a KnownBits for 0..(wavefront size - 1) (i.e. the high 26 or 27 bits are known zero) and then calling computeForAddSub to combine it with the known bits of src1.