summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/target
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2019-06-24 17:28:26 +0000
committerCraig Topper <craig.topper@intel.com>2019-06-24 17:28:26 +0000
commit033774e144bd18a55eaee783d08d5f2a89b44af8 (patch)
tree99b37a14248cd8d62effc017f41df96c9de12e77 /lldb/packages/Python/lldbsuite/test/python_api/target
parentfd7d0d4e3ff34cd51c9ed7b4a41e7045c91b1a9f (diff)
downloadbcm5719-llvm-033774e144bd18a55eaee783d08d5f2a89b44af8.tar.gz
bcm5719-llvm-033774e144bd18a55eaee783d08d5f2a89b44af8.zip
[X86] Cleanups and safety checks around the isFNEG
This patch does a few things to start cleaning up the isFNEG function. -Remove the Op0/Op1 peekThroughBitcast calls that seem unnecessary. getTargetConstantBitsFromNode has its own peekThroughBitcast inside. And we have a separate peekThroughBitcast on the return value. -Add a check of the scalar size after the first peekThroughBitcast to ensure we haven't changed the element size and just did something like f32->i32 or f64->i64. -Remove an unnecessary check that Op1's type is floating point after the peekThroughBitcast. We're just going to look for a bit pattern from a constant. We don't care about its type. -Add VT checks on several places that consume the return value of isFNEG. Due to the peekThroughBitcasts inside, the type of the return value isn't guaranteed. So its not safe to use it to build other nodes without ensuring the type matches the type being used to build the node. We might be able to replace these checks with bitcasts instead, but I don't have a test case so a bail out check seemed better for now. Differential Revision: https://reviews.llvm.org/D63683 llvm-svn: 364206
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/target')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud