summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/ModuloSchedule.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2019-09-20 07:00:22 +0000
committerCraig Topper <craig.topper@intel.com>2019-09-20 07:00:22 +0000
commit621c93ec1fd804f736cbcb58282ef037fa1a9c48 (patch)
tree295bb1274c6b5b4196ea4a6062cfb22019a64cde /llvm/lib/CodeGen/ModuloSchedule.cpp
parente03663fbb8469e54e18666efcc3c0b691cc8fb1f (diff)
downloadbcm5719-llvm-621c93ec1fd804f736cbcb58282ef037fa1a9c48.tar.gz
bcm5719-llvm-621c93ec1fd804f736cbcb58282ef037fa1a9c48.zip
[X86] Convert tbm_bextri_u32/tbm_bextri_u64 intrinsics TargetConstant argument to a regular Constant during lowering.
We reuse an ISD opcode here that can be reached from BMI that doesn't require it to be an immediate. Our isel patterns to match the TBM immediate form require a Constant and not a TargetConstant. We were accidentally getting the Constant due to a quirk of combineBEXTR calling SimplifyDemandedBits. The call to SimplifyDemandedBits ended up constant folding the TargetConstant to a regular Constant. But we should probably instead be asserting if SimplifyDemandedBits on a TargetConstant so we shouldn't rely on this behavior. llvm-svn: 372373
Diffstat (limited to 'llvm/lib/CodeGen/ModuloSchedule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud